Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnalyticsClass

Provide mobile analytics client functions

Hierarchy

  • AnalyticsClass

Index

Constructors

constructor

Methods

addPluggable

autoTrack

  • autoTrack(trackerType: any, opts: any): void

configure

  • configure(config?: any): any

disable

  • disable(): void

enable

  • enable(): void

getModuleName

  • getModuleName(): string

getPluggable

  • getPluggable(providerName: any): any

onHubCapsule

  • onHubCapsule(capsule: any): void

record

  • record(event: string | any, provider?: any, metrics?: EventMetrics): Promise<any>
  • Record one analytic event and send it to Pinpoint

    Parameters

    • event: string | any
    • Optional provider: any
    • Optional metrics: EventMetrics

    Returns Promise<any>

    • A promise which resolves if buffer doesn't overflow

removePluggable

  • removePluggable(providerName: any): void

startSession

  • startSession(provider?: string): Promise<any>
  • Record Session start

    Parameters

    • Optional provider: string

    Returns Promise<any>

    • A promise which resolves if buffer doesn't overflow

stopSession

  • stopSession(provider?: string): Promise<any>
  • Record Session stop

    Parameters

    • Optional provider: string

    Returns Promise<any>

    • A promise which resolves if buffer doesn't overflow

updateEndpoint

  • updateEndpoint(attrs: any, provider?: any): Promise<any>