Google is committed to advancing racial equity for Black communities. See how.

SemanticsPropertyReceiver

interface SemanticsPropertyReceiver
androidx.ui.semantics.SemanticsPropertyReceiver

Summary

Public methods
abstract operator Unit
set(key: SemanticsPropertyKey<T>, value: T)

Extension functions
From androidx.ui.semantics
Unit
SemanticsPropertyReceiver.ScrollTo(label: String? = null, action: (x: Float, y: Float) -> Boolean)

This function adds the SemanticsActions.ScrollTo to the SemanticsPropertyReceiver.

Unit
SemanticsPropertyReceiver.onClick(label: String? = null, action: () -> Boolean)

This function adds the SemanticsActions.OnClick to the SemanticsPropertyReceiver.

Unit
SemanticsPropertyReceiver.scrollBackward(label: String? = null, action: () -> Boolean)

This function adds the SemanticsActions.ScrollBackward to the SemanticsPropertyReceiver.

Unit
SemanticsPropertyReceiver.scrollForward(label: String? = null, action: () -> Boolean)

This function adds the SemanticsActions.ScrollForward to the SemanticsPropertyReceiver.

Unit
SemanticsPropertyReceiver.setProgress(label: String? = null, action: (progress: Float) -> Boolean)

This function adds the SemanticsActions.SetProgress to the SemanticsPropertyReceiver.

Extension properties
From androidx.ui.semantics
AccessibilityAction<(x: Float, y: Float) -> Boolean>

Action to scroll to a specified position.

String

Developer-set content description of the semantics node.

String

Developer-set state description of the semantics node.

AccessibilityRangeInfo

The node is a range with current value.

List<CustomAccessibilityAction>

Custom actions which are defined by app developers.

Boolean

Whether this semantics node is enabled.

Boolean

Whether this semantics node is hidden.

AccessibilityAction<() -> Boolean>

Action to be performed when the node is clicked.

Boolean

Whether this semantics node represents a Popup.

AccessibilityAction<() -> Boolean>

Action to scroll the content backward.

AccessibilityAction<() -> Boolean>

Action to scroll the content forward.

AccessibilityAction<(progress: Float) -> Boolean>

Action to set slider progress.

String

Test tag attached to this semantics node.

AnnotatedString

Text of the semantics node.

From androidx.ui.foundation.semantics
Boolean

Whether this element is a Dialog.

Boolean

Whether this element is in a group from which only a single item can be selected at any given time (such as a radio group)

Boolean

Whether this element is selected (out of a list of possible selections).

ToggleableState

The state of a toggleable component.

From androidx.ui.text
ImeAction

Contains the IME action provided by the node.

Boolean

Return whether the component supports input methods.

Public methods

set

abstract operator fun <T> set(
    key: SemanticsPropertyKey<T>,
    value: T
): Unit