ionic-capacitor-receive-intent
v0.0.1
Published
Its Plugin
Readme
ionic-capacitor-receive-intent
Its Plugin
Install
npm install ionic-capacitor-receive-intent
npx cap syncAPI
addListener('newIntentReceived', ...)
addListener(eventName: 'newIntentReceived', listenerFunc: (data: AppSendActionIntentResult) => void) => Promise<PluginListenerHandle> & PluginListenerHandleListen 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 |
