IntentOptionsWithRoot
IntentOptionsWithRoot
app.IntentOptionsWithRoot
Intent builder fields used by startActivity, sendBroadcast, startService, etc., plus an optional root flag so the runtime may use elevated privileges when launching.
See also
Inheritance
Extends
IntentOptions↳
IntentOptionsWithRoot
Table of contents
Properties
Properties
action
action?:string
Intent action string, e.g. "android.intent.action.SEND". When the value starts with android.intent.action., you may omit that prefix and pass "SEND" instead. See standard activity actions.
Inherited from
category
category?:string | string[]
Intent categories (uncommon for scripts). See standard categories.
Inherited from
className
className?:string
Fully qualified component class inside packageName when starting an activity or delivering a broadcast.
Inherited from
data
data?:any
Primary payload URI—file:///…, https://…, content://…, etc. Example: action: "android.intent.action.VIEW" with data: "file:///sdcard/1.txt".
Inherited from
extras
extras?:any
Bundle data as a plain object (string keys). See standard extras.
Inherited from
flags
flags?:string | number | Array<string | number>
Intent.setFlags equivalents, e.g. ["activity_new_task", "grant_read_uri_permission"].
Inherited from
packageName
packageName?:string
Restricts resolution to a single app. When null/unset, any matching component may handle the intent; when set, only that package’s exported components are considered.
Inherited from
root
root?:boolean
When true, allows the engine to use root execution paths (shell am/similar) if the ordinary Context.startActivity / sendBroadcast path cannot reach the component.
type
type?:string
MIME type describing data, e.g. "text/plain".
