@atroo/capacitor-adjust
v0.2.0
Published
Adjust Plugins for Capacitor
Downloads
8
Readme
capacitor-adjust
Adjust Plugins for Capacitor
Install
npm install @atroo/capacitor-adjust
npx cap syncAPI
initAdjust(...)
initAdjust(options: InitConfig) => Promise<void>adjust init
| Param | Type |
| ------------- | ------------------------------------------------- |
| options | InitConfig |
trackEvent(...)
trackEvent(options: AdjustEventOptions) => Promise<void>track custom event
| Param | Type |
| ------------- | ----------------------------------------------------------------- |
| options | AdjustEventOptions |
getAdid()
getAdid() => Promise<AdidResult>Returns: Promise<AdidResult>
Interfaces
InitConfig
adjust init config
| Prop | Type |
| ---------------------- | ---------------------------------------------------------------------------- |
| appToken | string |
| environment | 'sandbox' | 'production' |
| logLevel | 'error' | 'warn' | 'info' | 'verbose' | 'debug' | 'assert' |
| externalDeviceId | string |
AdjustEventOptions
adjust custom event options
| Prop | Type |
| ---------------- | --------------------------------------------------------------- |
| eventToken | string |
| revenue | number |
| currency | string |
| parameters | Record<string, string> |
AdidResult
| Prop | Type |
| ---------- | ------------------- |
| adid | string |
Type Aliases
Record
Construct a type with a set of properties K of type T
{ [P in K]: T; }
