IntentOptions
IntentOptions
app.IntentOptions
High-level fields used to build an Android Intent for makeIntent, startActivity, sendBroadcast, startService, etc.
Table of contents
Properties
Properties
action
action?:string
Intent action string, e.g. "android.intent.action.SEND". If the value starts with android.intent.action., you may omit that prefix and pass "SEND" instead.
See also: Standard activity actions
category
category?:string | string[]
Intent categories (uncommon in scripts).
See also: Standard categories
className
className?:string
Fully qualified component class name inside packageName when explicitly targeting an activity or receiver.
data
data?:any
Primary URI for the intent—file:///…, https://…, content://…, or an object the runtime accepts as Uri data. Example: action: "android.intent.action.VIEW" with data: "file:///sdcard/1.txt".
extras
extras?:any
Extra key/value map (plain object) merged into the intent Bundle.
See also: Standard extra data
flags
flags?:string | number | Array<string | number>
Intent.setFlags-style values, e.g. ["activity_new_task", "grant_read_uri_permission"].
packageName
packageName?:string
Restricts resolution to a single package. When unset, any matching exported component may handle the intent; when set, only that package’s components are considered.
type
type?:string
MIME type describing data, e.g. "text/plain" or "image/png".
