0.0.1 • Published 2 years ago
ionic-capacitor-receive-intent v0.0.1
ionic-capacitor-receive-intent
Its Plugin
Install
npm install ionic-capacitor-receive-intent
npx cap sync
API
addListener('newIntentReceived', ...)
addListener(eventName: 'newIntentReceived', listenerFunc: (data: AppSendActionIntentResult) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Listen for send action intent events (Android only). The extras will be passed as a key value pair directly from the Android intent.
Param | Type |
---|---|
eventName | 'newIntentReceived' |
listenerFunc | (data: AppSendActionIntentResult) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Interfaces
PluginListenerHandle
Prop | Type |
---|---|
remove | () => Promise<void> |
AppSendActionIntentResult
Prop | Type | Description |
---|---|---|
extras | any | An object with keys for Android intent names (like 'android.intent.extra.SUBJECT') and their value passed from the Android intent |
0.0.1
2 years ago