Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IntentTaskConfig

The configuration of the intent task. It includes broadcast task (triggers at a specific broadcast event), and activity task (triggers at opening external files, links, etc. ).

see

addBroadcastIntentTask

see

addActivityIntentTask

Hierarchy

Index

Properties

Readonly action

action: string

The action of the task. For example, in an activity task, "android.intent.action.VIEW" is triggered when opening files; in a broadcast task, "android.intent.action.BATTERY_CHANGED" is triggered when the battery changes.

Optional Readonly dataType

dataType: string

The MIME type of the file to be opened in an activity task.

Optional Readonly local

local: boolean

Readonly path

path: string

The script path of the task, must be a absolute path.

Optional Readonly type

type: "broadcast_intent_task" | "activity_intent_task"

Specifies whether the task is an activity task (activity_intent_task) or a broadcast task (broadcast_intent_task).