RateAppAction

open class RateAppAction : Action

Action to link users to the rating section of their respective app store directly or through a prompt.

Accepted situations: SITUATION_MANUAL_INVOCATION, SITUATION_WEB_VIEW_INVOCATION, SITUATION_PUSH_OPENED, SITUATION_AUTOMATION, and SITUATION_FOREGROUND_NOTIFICATION_ACTION_BUTTON.

Expected argument values: ``show_link_prompt``: Optional Boolean. If NO action will link directly to the Amazon or Play store review page, if YES action will display a rating prompt. Defaults to NO if null. ``title``: Optional String. String to override the link prompt's title. Header defaults to "Enjoying ?" if null. ``body``: Optional String. String to override the link prompt's body. Body defaults to "Tap Rate to rate it in the app store." if null.

Result value: null

Default Registration Names: ^ra, rate_app_action

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val BODY_KEY: String = "body"
Key to define the app review link prompt's body when providing the action's value as a map.
Link copied to clipboard
val DEFAULT_REGISTRY_NAME: String = "rate_app_action"
Default registry name
Link copied to clipboard
Default registry short name
Link copied to clipboard
val SHOW_LINK_PROMPT_KEY: String = "show_link_prompt"
Key for the showing link prompt option.
Link copied to clipboard
val SHOW_RATE_APP_INTENT_ACTION: String = "com.urbanairship.actions.SHOW_RATE_APP_INTENT_ACTION"
Intent action for linking directly to store review page or displaying a rating link prompt with the option of opening the review page link.
Link copied to clipboard
val TITLE_KEY: String = "title"
Key to define the app review link prompt's title when providing the action's value as a map.

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
Checks if the argument's value can be parsed and ensures the situation is neither Action.SITUATION_PUSH_RECEIVED nor Action.SITUATION_BACKGROUND_NOTIFICATION_ACTION_BUTTON.
Link copied to clipboard
Performs the action.
Link copied to clipboard
Determines which thread runs the action.

Inherited functions

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.