Class

ThrottledCallbacks.Entry

Entry for a throttled callback for RelativeLayoutBounds associated to the given node.

Source set: Common
inner class Entry(
        val id: Int,
        val throttleMillis: Long,
        val debounceMillis: Long,
        val node: DelegatableNode,
        val callback: (RelativeLayoutBounds) -> Unit,
    ) : RegistrationHandle

Entry for a throttled callback for RelativeLayoutBounds associated to the given node.

Supports a linked-list structure for multiple callbacks on the same node through next.

Properties

next

Source set: Common
var next: Entry? = null

topLeft

Source set: Common
var topLeft: Long = 0

bottomRight

Source set: Common
var bottomRight: Long = 0

lastInvokeMillis

Source set: Common
var lastInvokeMillis: Long = Long.MIN_VALUE

lastUninvokedFireMillis

Source set: Common
var lastUninvokedFireMillis: Long = -1

Functions

unregister

Source set: Common
override fun unregister()

fire

Source set: Common
fun fire(
            topLeft: Long,
            bottomRight: Long,
            windowOffset: IntOffset,
            screenOffset: IntOffset,
            viewToWindowMatrix: Matrix?,
        )
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: