getScrollViewportLength

Function

Common
fun SemanticsPropertyReceiver.getScrollViewportLength(
    label: String? = null,
    action: (() -> Float?),
)

Action to get a scrollable's active view port amount for scrolling actions.

Parameters

labelOptional label for this action.
actionAction to be performed when the SemanticsActions.GetScrollViewportLength is called.