Awesome
capacitor-android-intents
Simple intent tools for Capacitor on Android platform.
Install
npm install capacitor-android-intents
npx cap sync
Usage
See example-app
in packages
folder.
API
<docgen-index> </docgen-index> <docgen-api> <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->registerBroadcastReceiver(...)
registerBroadcastReceiver(options: { filters: string[]; }, callback: (data: { [key: string]: any; }) => void) => any
Param | Type |
---|---|
options | <code>{ filters: {}; }</code> |
callback | <code>(data: { [key: string]: any; }) => void</code> |
Returns: <code>any</code>
unregisterBroadcastReceiver(...)
unregisterBroadcastReceiver(options: { id: string; }) => any
Param | Type |
---|---|
options | <code>{ id: string; }</code> |
Returns: <code>any</code>
sendBroadcastIntent(...)
sendBroadcastIntent(options: { action: string; value: { [key: string]: any; }; }) => any
Param | Type |
---|---|
options | <code>{ action: string; value: { [key: string]: any; }; }</code> |
Returns: <code>any</code>
</docgen-api>