Simple intent tools for Capacitor on Android platform.
npm install capacitor-android-intents
npx cap sync
See example-app
in packages
folder.
registerBroadcastReceiver(options: { filters: string[]; }, callback: (data: { [key: string]: any; }) => void) => any
Param | Type |
---|---|
options |
{ filters: {}; } |
callback |
(data: { [key: string]: any; }) => void |
Returns: any
unregisterBroadcastReceiver(options: { id: string; }) => any
Param | Type |
---|---|
options |
{ id: string; } |
Returns: any
sendBroadcastIntent(options: { action: string; value: { [key: string]: any; }; }) => any
Param | Type |
---|---|
options |
{ action: string; value: { [key: string]: any; }; } |
Returns: any