capacitor-adjust-plugin
v0.0.2
Published
Adjust Plugins for Capacitor
Downloads
6
Readme
capacitor-adjust-plugin
Adjust Plugins for Capacitor
Install
npm install capacitor-adjust-plugin
npx cap syncAPI
init(...)
init(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' |
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; }
