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>
options | { filters: string[]; } |
callback | (data: { [key: string]: any; }) => void |
Returns: Promise<string>
unregisterBroadcastReceiver(...)
unregisterBroadcastReceiver(options: { id: string; }) => Promise<void>
sendBroadcastIntent(...)
sendBroadcastIntent(options: { action: string; value: { [key: string]: any; }; }) => Promise<void>
options | { action: string; value: { [key: string]: any; }; } |