Adjust Plugins for Capacitor
npm install capacitor-adjust-pluginAdjust Plugins for Capacitor
``bash`
npm install capacitor-adjust-plugin
npx cap sync
* init(...)
* trackEvent(...)
* getAdid()
* Interfaces
* Type Aliases
`typescript`
init(options: InitConfig) => Promise
adjust init
| Param | Type |
| ------------- | ------------------------------------------------- |
| options | InitConfig |
--------------------
`typescript`
trackEvent(options: AdjustEventOptions) => Promise
track custom event
| Param | Type |
| ------------- | ----------------------------------------------------------------- |
| options | AdjustEventOptions |
--------------------
`typescript`
getAdid() => Promise
Returns: Promise<AdidResult>
--------------------
#### 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 |
#### Record
Construct a type with a set of properties K of type T
{
[P in K]: T;
}