0.0.1 • Published 2 years ago

ionic-capacitor-receive-intent v0.0.1

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

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.

ParamType
eventName'newIntentReceived'
listenerFunc(data: AppSendActionIntentResult) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

AppSendActionIntentResult

PropTypeDescription
extrasanyAn 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