1.0.0 • Published 2 years ago

capacitor-android-intents v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

capacitor-android-intents

Simple intent tools for Capacitor on Android platform.

Install

npm install capacitor-android-intents
npx cap sync

Usage

API

registerBroadcastReceiver(...)

registerBroadcastReceiver(options: { filters: string[]; }, callback: (data: { [key: string]: any; }) => void) => any
ParamType
options{ filters: {}; }
callback(data: { key: string: any; }) => void

Returns: any


unregisterBroadcastReceiver(...)

unregisterBroadcastReceiver(options: { id: string; }) => any
ParamType
options{ id: string; }

Returns: any


sendBroadcastIntent(...)

sendBroadcastIntent(options: { action: string; value: { [key: string]: any; }; }) => any
ParamType
options{ action: string; value: { key: string: any; }; }

Returns: any