Skip to content

Latest commit

 

History

History
101 lines (76 loc) · 3.01 KB

IMPLEMENTATIONS.md

File metadata and controls

101 lines (76 loc) · 3.01 KB

Implementations

When using import AtInternet from "@lemonde/react-native-at-internet".

AtInternet type declaration :

Members

EventEmitter

NativeEventEmitter (see Android doc and iOS doc)

Events: enum

  • buildDidEnd
  • didCallPartner
  • errorDidOccur
  • saveDidEnd
  • sendDidEnd
  • trackerNeedsFirstLaunchApproval
  • warningDidOccur

Functions

Configuration

  • setLevel2(level2: number): Promise‹true›
  • setConfigBoolean(key: string, value: boolean | null): Promise‹true›
  • setConfigDouble(key: string, value: number | null): Promise‹true›
  • setConfigInteger(key: string, value: number | null): Promise‹true›
  • setConfigString(key: string, value: string | null): Promise‹true›
  • setParamBoolean(key: string, value: boolean | null): Promise‹true›
  • setParamDouble(key: string, value: number | null): Promise‹true›
  • setParamInteger(key: string, value: number | null): Promise‹true›
  • setParamString(key: string, value: string | null): Promise‹true›
  • setProp(key: string, value: string, persistent: boolean): Promise‹true›
iOS only
  • enableListeners(): Promise‹true›: enable Event emitting
  • disableListeners(): Promise‹true›: disable Event emitting

Hits

Visitor context

  • visitor(visitorId: string | number, visitorCategory: string | number | null): Promise‹true›
  • unsetVisitor(): Promise‹true›

Inner interfaces

HitParameters

  • name : string
  • optional chapter1: string
  • optional chapter2: string
  • optional chapter3: string
  • optional customObject: string (must be a object JSON string representation, eg.: return value of JSON.stringify({ my: 'custom object' }))
  • optional level2: string

Events Interfaces

  • trackerNeedsFirstLaunchApproval

    { message: string }
  • buildDidEnd

    { message: string, status: number }
  • sendDidEnd

    { message: string, status: number }
  • didCallPartner

    { response: string }
  • warningDidOccur

    { message: string }
  • saveDidEnd

    { message: string }
  • errorDidOccur

    { message: string }