0.0.1 • Published 2 years ago

capacitor3-amplitude v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

capacitor3-amplitude

capacitor3 amplitude plugin

Install

npm install capacitor3-amplitude
npx cap sync

API

initialize(...)

initialize(options: { instanceName: string; apiKey: string; }) => Promise<void>
ParamType
options{ instanceName: string; apiKey: string; }

logEvent(...)

logEvent(options: { instanceName: string; eventType: string; }) => Promise<void>
ParamType
options{ instanceName: string; eventType: string; }

logEventWithProperties(...)

logEventWithProperties(options: { instanceName: string; eventType: string; eventProperties: PropertiesObject; }) => Promise<void>
ParamType
options{ instanceName: string; eventType: string; eventProperties: PropertiesObject; }

enableCoppaControl(...)

enableCoppaControl(options: { instanceName: string; }) => Promise<void>
ParamType
options{ instanceName: string; }

disableCoppaControl(...)

disableCoppaControl(options: { instanceName: string; }) => Promise<void>
ParamType
options{ instanceName: string; }

regenerateDeviceId(...)

regenerateDeviceId(options: { instanceName: string; }) => Promise<void>
ParamType
options{ instanceName: string; }

setDeviceId(...)

setDeviceId(options: { instanceName: string; deviceId: string; }) => Promise<void>
ParamType
options{ instanceName: string; deviceId: string; }

getDeviceId(...)

getDeviceId(options: { instanceName: string; }) => Promise<string>
ParamType
options{ instanceName: string; }

Returns: Promise<string>


setOptOut(...)

setOptOut(options: { instanceName: string; optOut: boolean; }) => Promise<void>
ParamType
options{ instanceName: string; optOut: boolean; }

setLibraryName(...)

setLibraryName(options: { instanceName: string; libraryName: string; }) => Promise<void>
ParamType
options{ instanceName: string; libraryName: string; }

setLibraryVersion(...)

setLibraryVersion(options: { instanceName: string; libraryVersion: string; }) => Promise<void>
ParamType
options{ instanceName: string; libraryVersion: string; }

trackingSessionEvents(...)

trackingSessionEvents(options: { instanceName: string; trackingSessionEvents: boolean; }) => Promise<void>
ParamType
options{ instanceName: string; trackingSessionEvents: boolean; }

setUseDynamicConfig(...)

setUseDynamicConfig(options: { instanceName: string; useDynamicConfig: boolean; }) => Promise<void>
ParamType
options{ instanceName: string; useDynamicConfig: boolean; }

setUserId(...)

setUserId(options: { instanceName: string; userId: string | null; }) => Promise<void>
ParamType
options{ instanceName: string; userId: string | null; }

setServerUrl(...)

setServerUrl(options: { instanceName: string; serverUrl: string; }) => Promise<void>
ParamType
options{ instanceName: string; serverUrl: string; }

logRevenueV2(...)

logRevenueV2(options: { instanceName: string; userProperties: RevenueProperties; }) => Promise<void>
ParamType
options{ instanceName: string; userProperties: RevenueProperties; }

identify(...)

identify(options: { instanceName: string; userProperties: PropertiesObject; }) => Promise<void>
ParamType
options{ instanceName: string; userProperties: PropertiesObject; }

setGroup(...)

setGroup(options: { instanceName: string; groupType: string; groupName: string | string[]; }) => Promise<void>
ParamType
options{ instanceName: string; groupType: string; groupName: string | string[]; }

groupIdentify(...)

groupIdentify(options: { instanceName: string; groupType: string; groupName: string | string[]; userProperties: PropertiesObject; }) => Promise<void>
ParamType
options{ instanceName: string; groupType: string; groupName: string | string[]; userProperties: PropertiesObject; }

setUserProperties(...)

setUserProperties(options: { instanceName: string; userProperties: PropertiesObject; }) => Promise<void>
ParamType
options{ instanceName: string; userProperties: PropertiesObject; }

clearUserProperties(...)

clearUserProperties(options: { instanceName: string; }) => Promise<void>
ParamType
options{ instanceName: string; }

uploadEvents(...)

uploadEvents(options: { instanceName: string; }) => Promise<void>
ParamType
options{ instanceName: string; }

getSessionId(...)

getSessionId(options: { instanceName: string; }) => Promise<number>
ParamType
options{ instanceName: string; }

Returns: Promise<number>


setMinTimeBetweenSessionsMillis(...)

setMinTimeBetweenSessionsMillis(options: { instanceName: string; minTimeBetweenSessionsMillis: number; }) => Promise<void>
ParamType
options{ instanceName: string; minTimeBetweenSessionsMillis: number; }

setServerZone(...)

setServerZone(options: { instanceName: string; serverZone: string; updateServerUrl: boolean; }) => Promise<void>
ParamType
options{ instanceName: string; serverZone: string; updateServerUrl: boolean; }

setEventUploadMaxBatchSize(...)

setEventUploadMaxBatchSize(options: { instanceName: string; eventUploadMaxBatchSize: number; }) => Promise<void>
ParamType
options{ instanceName: string; eventUploadMaxBatchSize: number; }

setEventUploadPeriodMillis(...)

setEventUploadPeriodMillis(options: { instanceName: string; eventUploadPeriodMillis: number; }) => Promise<void>
ParamType
options{ instanceName: string; eventUploadPeriodMillis: number; }

setEventUploadThreshold(...)

setEventUploadThreshold(options: { instanceName: string; eventUploadThreshold: number; }) => Promise<void>
ParamType
options{ instanceName: string; eventUploadThreshold: number; }

Type Aliases

PropertiesObject

Record<string, any>

Record

Construct a type with a set of properties K of type T

{

}

RevenueProperties

{ price: number; productId?: string; quantity?: number; revenueType?: string; receipt?: string; receiptSignature?: string; eventProperties?: PropertiesObject; }