1.0.1 • Published 4 months ago
@droponio/capacitor-intent-fragment v1.0.1
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; }; } |