0.0.1 • Published 2 years ago

sk-android-intent v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
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; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


registerBroadcastReceiver(...)

registerBroadcastReceiver(options: RegisterBroadcastReceiverOptions, callback: IntentCallback) => string
ParamType
optionsRegisterBroadcastReceiverOptions
callbackIntentCallback

Returns: string


unregisterBroadcastReceiver(...)

unregisterBroadcastReceiver(options: UnregisterBroadcastReceiverOptions) => Promise<void>
ParamType
optionsUnregisterBroadcastReceiverOptions

sendBroadcast(...)

sendBroadcast(options: IntentOptions) => Promise<any>
ParamType
optionsIntentOptions

Returns: Promise<any>


Interfaces

RegisterBroadcastReceiverOptions

PropType
filterActionsstring[]
filterCategoriesstring[]
filterDataSchemesstring[]

Intent

PropType
actionstring
clipItemsIntentClipItem[]
componentstring
extrasobject
flagsnumber
typestring

IntentClipItem

PropType
uristring
typestring
extensionstring

UnregisterBroadcastReceiverOptions

PropType
subscriptionstring

IntentOptions

PropType
requestCodenumber
typestring
packagestring
urlstring
extrasobject
actionstring
component{ package: string; class: string; }
flagsnumber[]

Type Aliases

IntentCallback

(data: Intent, err?: any): void

0.0.1

2 years ago