Function

SuspendingPointerInputModifierNode

Deprecated, use SuspendingPointerInputModifierNode instead.

SuspendingPointerInputModifierNode

Source set: Common
@Deprecated(
    message =
        "This function is deprecated. Use 'SuspendingPointerInputModifierNode' with the" +
            "PointerInputEventHandler instead.",
    level = DeprecationLevel.HIDDEN,
    replaceWith =
        ReplaceWith(
            "SuspendingPointerInputModifierNode { pointerInputEventHandler }",
            "androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNode",
        ),
)
public fun SuspendingPointerInputModifierNode(
    pointerInputHandler: suspend PointerInputScope.() -> Unit
): SuspendingPointerInputModifierNode

Deprecated, use SuspendingPointerInputModifierNode instead.

SuspendingPointerInputModifierNode

Source set: Common
public fun SuspendingPointerInputModifierNode(
    pointerInputEventHandler: PointerInputEventHandler
): SuspendingPointerInputModifierNode

Supports suspending pointer event handling. This is used by pointerInput, so in most cases you should just use pointerInput for suspending pointer input. Creating a SuspendingPointerInputModifierNode should only be needed when you want to delegate to suspending pointer input as part of the implementation of a complex Modifier.Node.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: