Glimpse View
fun GlimpseView(onCreate: <Error class: unknown class>.() -> Unit, onResize: <Error class: unknown class>.(Offset, Size) -> Unit, onRender: <Error class: unknown class>.() -> Unit, onDestroy: <Error class: unknown class>.() -> Unit, modifier: Modifier = Modifier, onClick: () -> Unit? = null, update: GlimpseViewScope.() -> Unit = NoOpUpdate)
A GlimpseView displays content rendered using GlimpseAdapter.
Since
v1.1.0
Parameters
on Create
Called when this GlimpseView is being initialized.
on Resize
Called when this GlimpseView is resized.
on Render
Called on each frame when the contents of this GlimpseView are being rendered.
on Destroy
Called when this GlimpseView is being destroyed.
modifier
The modifier to be applied to the layout.
on Click
Called when the user clicks on this GlimpseView.
update
The callback to be invoked after the layout is inflated.
expect fun GlimpseView(callback: <Error class: unknown class>, modifier: Modifier = Modifier, onClick: () -> Unit? = null, update: GlimpseViewScope.() -> Unit = NoOpUpdate)
A GlimpseView displays content rendered using GlimpseAdapter and GlimpseCallback.
Parameters
callback
The rendering GlimpseCallback.
modifier
The modifier to be applied to the layout.
on Click
Called when the user clicks on this GlimpseView.
update
The callback to be invoked after the layout is inflated.