LandingPageAction
class LandingPageAction(scheduler: suspend (AutomationSchedule) -> Unit, allowListChecker: (String) -> Boolean, scheduleExtender: ScheduleExtender? = null, borderRadius: Float, clock: Clock = Clock.DEFAULT_CLOCK) : Action(source)
Schedules a landing page to display ASAP.
Accepted situations: Action.Situation.PUSH_OPENED, Action.Situation.WEB_VIEW_INVOCATION, Action.Situation.MANUAL_INVOCATION, Action.Situation.AUTOMATION, and Action.Situation.FOREGROUND_NOTIFICATION_ACTION_BUTTON.
Accepted argument value types: URL defined as either a String or a Map containing the key "url" that defines the URL, an optional "width", "height" in dps as an int or "fill" string, an optional "aspect_lock" option as a boolean.
The aspect_lock option guarantees that if the message does not fit, it will be resized at the same aspect ratio defined by the provided width and height parameters.
Default Registration Names: ^p, landing_page_action
Constructors
Link copied to clipboard
constructor(scheduler: suspend (AutomationSchedule) -> Unit, allowListChecker: (String) -> Boolean, scheduleExtender: ScheduleExtender? = null, borderRadius: Float, clock: Clock = Clock.DEFAULT_CLOCK)
constructor(borderRadius: Float = DEFAULT_BORDER_RADIUS, scheduleExtender: ScheduleExtender? = null)
Default constructor