ScheduleAction

class ScheduleAction @JvmOverloads constructor(scheduler: suspend (AutomationSchedule) -> Unit = { InAppAutomation.shared().upsertSchedules(listOf(it)) }) : Action

Action to schedule actions.

Accepted situations: Action.SITUATION_MANUAL_INVOCATION, Action.SITUATION_WEB_VIEW_INVOCATION, Action.SITUATION_AUTOMATION, and Action.SITUATION_PUSH_RECEIVED.

Result value: Schedule ID.

Default Registration Names: ScheduleAction.DEFAULT_NAMES

Default Registration Predicate: none

Constructors

Link copied to clipboard
constructor(scheduler: suspend (AutomationSchedule) -> Unit = { InAppAutomation.shared().upsertSchedules(listOf(it)) })

Types

Link copied to clipboard
object Companion

Functions

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

Inherited functions

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