Skip to content

//workflow/com.squareup.workflow1.ui.modal/AlertScreen

AlertScreen

[jvm] @WorkflowUiExperimentalApi()

data class AlertScreen(buttons: Map<AlertScreen.Button, String>, message: String, title: String, cancelable: Boolean, onEvent: (AlertScreen.Event) -> Unit)

Models a typical “You sure about that?” alert box.

Constructors

AlertScreen [jvm] fun AlertScreen(buttons: Map<AlertScreen.Button, String> = emptyMap(), message: String = “”, title: String = “”, cancelable: Boolean = true, onEvent: (AlertScreen.Event) -> Unit)

Types

Name Summary
Button [jvm]
Content
enum Button : Enum<AlertScreen.Button>


Event [jvm]
Content
sealed class Event


Functions

Name Summary
equals [jvm]
Content
open operator override fun equals(other: Any?): Boolean


hashCode [jvm]
Content
open override fun hashCode(): Int


Properties

Name Summary
buttons [jvm] val buttons: Map<AlertScreen.Button, String>
cancelable [jvm] val cancelable: Boolean = true
message [jvm] val message: String
onEvent [jvm] val onEvent: (AlertScreen.Event) -> Unit
title [jvm] val title: String