AccessibilityAction

data class AccessibilityAction<T : Function<Boolean>>
kotlin.Any
   ↳ androidx.ui.semantics.AccessibilityAction

Data class for standard accessibility action.

Summary

Public constructors
<init>(label: CharSequence?, action: T)

Data class for standard accessibility action.

Properties
T

The function to invoke when this action is performed.

CharSequence?

The description of this action

Public constructors

<init>

AccessibilityAction(
    label: CharSequence?,
    action: T)

Data class for standard accessibility action.

Parameters
label: CharSequence? The description of this action
action: T The function to invoke when this action is performed. The function should return a boolean result indicating whether the action is successfully handled. For example, a scroll forward action should return false if the widget is not enabled or has reached the end of the list.

Properties

action

val action: T

The function to invoke when this action is performed. The function should return a boolean result indicating whether the action is successfully handled. For example, a scroll forward action should return false if the widget is not enabled or has reached the end of the list.

label

val label: CharSequence?

The description of this action