Skip to content

Simple intent tools for Capacitor on Android platform.

Notifications You must be signed in to change notification settings

IT-MikeS/capacitor-intents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

registerBroadcastReceiver(...)

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

Returns: any


unregisterBroadcastReceiver(...)

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

Returns: any


sendBroadcastIntent(...)

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

Returns: any