RateAppAction

class RateAppAction(appStoreIntentProvider: () -> Intent, contextProvider: () -> Context) : Action(source)

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

Accepted situations: Action.Situation.MANUAL_INVOCATION, Action.Situation.WEB_VIEW_INVOCATION, Action.Situation.PUSH_OPENED, Action.Situation.AUTOMATION, and Action.Situation.FOREGROUND_NOTIFICATION_ACTION_BUTTON.

Expected argument values: SHOW_LINK_PROMPT_KEY: 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_KEY: Optional String. String to override the link prompt's title. Header defaults to "Enjoying ?" if null. BODY_KEY: 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: DEFAULT_NAMES

Constructors

Link copied to clipboard
constructor(appStoreIntentProvider: () -> Intent, contextProvider: () -> Context)
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun acceptsArguments(arguments: ActionArguments): Boolean

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
open override fun perform(arguments: ActionArguments): ActionResult

Performs the action.

Link copied to clipboard
open override fun shouldRunOnMainThread(): Boolean

Determines which thread runs the action.

Inherited functions

Link copied to clipboard
open fun onFinish(arguments: ActionArguments, result: ActionResult)

Called after the action performs.

Link copied to clipboard
open fun onStart(arguments: ActionArguments)

Called before an action is performed.

Link copied to clipboard

Performs the action, with pre/post execution calls, if it accepts the provided arguments.