Blink Deeplink SDK plugin
npm install @blinkglobal/deeplinkBlink Deeplink Plugin
``bash`
npm i @blinkglobal/deeplink
npx cap sync
* echo(...)
* handleDeepLink(...)
* initializeSDK(...)
* addListener('deepLinkSuccess', ...)
* removeAllListeners()
* Interfaces
`typescript`
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
--------------------
`typescript`
handleDeepLink(options: { url: string; }) => Promise<{ keyword: string; response: string; }>
| Param | Type |
| ------------- | ----------------------------- |
| options | { url: string; } |
Returns: Promise<{ keyword: string; response: string; }>
--------------------
`typescript`
initializeSDK(options: { config: SDKConfig; }) => Promise<{ success: boolean; }>
| Param | Type |
| ------------- | ------------------------------------------------------------ |
| options | { config: SDKConfig; } |
Returns: Promise<{ success: boolean; }>
--------------------
`typescript`
addListener(eventName: 'deepLinkSuccess', listenerFunc: (event: { keyword: string; response: string; }) => void) => Promise
| Param | Type |
| ------------------ | ----------------------------------------------------------------------- |
| eventName | 'deepLinkSuccess' |
| listenerFunc | (event: { keyword: string; response: string; }) => void |
Returns: Promise<any>
--------------------
`typescript``
removeAllListeners() => Promise
--------------------
#### SDKConfig