capacitor-intent-sender
v6.0.1
Published
Plugin to send Android intents from Capacitor apps
Downloads
620
Readme
capacitor-intent-sender
Plugin to send Android intents from Capacitor apps
Supported versions
| Plugin Version | Capacitor Version | Maintained | |----------------|-------------------|------------| | 6.0.0 | 6.*.* | ✅ | | 1.1.0 | 5.*.* | ❌ | | 1.0.* | 4.*.* | ❌ |
Install
npm install capacitor-intent-sender
npx cap sync
API
startActivity(...)
startActivity(intent: Intent) => Promise<void>
Launch a new activity
| Param | Type | Description |
| ------------ | ----------------------------------------- | ---------------------------------------- |
| intent
| Intent | The description of the activity to start |
Interfaces
Intent
| Prop | Type | Description |
| ---------------- | ------------------------------------------------ | --------------------------------------------------------------- |
| action
| string | The action to be performed |
| data
| string | The data to operate on, expressed as a URI |
| categories
| string[] | Additional information about the given action |
| type
| string | The explicit type of the given data |
| component
| { package: string; class: string; } | The explicit name of the target component class |
| extras
| { [key: string]: unknown; } | Any additional information to be passed to the target component |
| flags
| number | Special flags controlling how the intent is handled |