onGloballyPositioned

fun onGloballyPositioned(layoutCoordinates: LayoutCoordinates)

To be called from a compose view, using Modifier.onGloballyPositioned.

Example:

modifier = Modifier.onGloballyPositioned { videoSinkVisibility.onGloballyPositioned(it) }