FetchDeviceInfoAction

Action to fetch a map of device properties.

Accepted situations: all.

Accepted argument value - none.

Result value: JsonMap containing the device's channel ID, named user ID, push opt-in status, location enabled status, and tags. An example response as JSON:

{
  "channel_id": "9c36e8c7-5a73-47c0-9716-99fd3d4197d5",
  "push_opt_in": true,
  "location_enabled": true,
  "named_user": "cool_user",
  "tags": ["tag1", "tag2, "tag3"]
}

Default Registration Names: DEFAULT_REGISTRY_NAME, DEFAULT_REGISTRY_SHORT_NAME

Default Registration Predicate: only accepts SITUATION_WEB_VIEW_INVOCATION and SITUATION_MANUAL_INVOCATION

Constructors

Link copied to clipboard
constructor()

Types

Properties

Link copied to clipboard
val CHANNEL_ID_KEY: String = "channel_id"
Channel ID response key.
Link copied to clipboard
val DEFAULT_REGISTRY_NAME: String = "fetch_device_info"
Default registry name
Link copied to clipboard
Default registry short name
Link copied to clipboard
val LOCATION_ENABLED_KEY: String = "location_enabled"
Location enabled response key.
Link copied to clipboard
val NAMED_USER_ID_KEY: String = "named_user"
Named user response key.
Link copied to clipboard
val PUSH_OPT_IN_KEY: String = "push_opt_in"
Push opt-in response key.
Link copied to clipboard
val TAGS_KEY: String = "tags"
Tags response key.

Inherited properties

Link copied to clipboard
Situation where an action is triggered from Action Automation.
Situation where an action is triggered from a background notification action button.
Situation where an action is triggered from a foreground notification action button.
Link copied to clipboard
Situation where an action is manually invoked.
Link copied to clipboard
Situation where an action is triggered when a push is opened.
Link copied to clipboard
Situation where an action is triggered when a push is received.
Link copied to clipboard
Situation where an action is triggered from a web view.

Functions

Link copied to clipboard
Performs the action.

Inherited functions

Link copied to clipboard
Called before an action is performed to determine if the the action can accept the arguments.
Link copied to clipboard
open fun onFinish(@NonNull arguments: ActionArguments, @NonNull result: ActionResult)
Called after the action performs.
Link copied to clipboard
open fun onStart(@NonNull arguments: ActionArguments)
Called before an action is performed.
Link copied to clipboard
Determines which thread runs the action.