@droponio/capacitor-intent-fragment
v1.0.1
Published
Capacitor Js plugin for receveing and sending intents
Downloads
27
Readme
capacitor-intent
Capacitor Js plugin for receveing and sending intents
Install
npm install capacitor-intent
npx cap sync
API
registerBroadcastReceiver(...)
registerBroadcastReceiver(options: { filters: string[]; }, callback: (data: { [key: string]: any; }) => void) => Promise<string>
| Param | Type |
| -------------- | ------------------------------------------------------- |
| options
| { filters: string[]; } |
| callback
| (data: { [key: string]: any; }) => void |
Returns: Promise<string>
unregisterBroadcastReceiver(...)
unregisterBroadcastReceiver(options: { id: string; }) => Promise<void>
| Param | Type |
| ------------- | ---------------------------- |
| options
| { id: string; } |
sendBroadcastIntent(...)
sendBroadcastIntent(options: { action: string; value: { [key: string]: any; }; }) => Promise<void>
| Param | Type |
| ------------- | ---------------------------------------------------------------- |
| options
| { action: string; value: { [key: string]: any; }; } |