0.0.1 • Published 2 years ago
sk-android-intent
Provides access to android intents.
Install
npm install sk-android-intent
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|
options | { value: string; } |
Returns: Promise<{ value: string; }>
registerBroadcastReceiver(...)
registerBroadcastReceiver(options: RegisterBroadcastReceiverOptions, callback: IntentCallback) => string
Param | Type |
---|
options | RegisterBroadcastReceiverOptions |
callback | IntentCallback |
Returns: string
unregisterBroadcastReceiver(...)
unregisterBroadcastReceiver(options: UnregisterBroadcastReceiverOptions) => Promise<void>
Param | Type |
---|
options | UnregisterBroadcastReceiverOptions |
sendBroadcast(...)
sendBroadcast(options: IntentOptions) => Promise<any>
Param | Type |
---|
options | IntentOptions |
Returns: Promise<any>
Interfaces
RegisterBroadcastReceiverOptions
Prop | Type |
---|
filterActions | string[] |
filterCategories | string[] |
filterDataSchemes | string[] |
Intent
Prop | Type |
---|
action | string |
clipItems | IntentClipItem[] |
component | string |
extras | object |
flags | number |
type | string |
IntentClipItem
Prop | Type |
---|
uri | string |
type | string |
extension | string |
UnregisterBroadcastReceiverOptions
Prop | Type |
---|
subscription | string |
IntentOptions
Prop | Type |
---|
requestCode | number |
type | string |
package | string |
url | string |
extras | object |
action | string |
component | { package: string; class: string; } |
flags | number[] |
Type Aliases
IntentCallback
(data: Intent, err?: any): void