GlimpseView

@Composable
actual fun GlimpseView(    callback: GlimpseCallback,     modifier: Modifier = Modifier,     onClick: () -> Unit? = null,     update: GlimpseViewScope.() -> Unit = NoOpUpdate)

A GlimpseView displays content rendered using Glimpse OpenGL adapter and callback interface.

Parameters

callback

The rendering callback interface.

modifier

The modifier to be applied to the layout.

onClick

Called when the user clicks on this GlimpseView.

update

The callback to be invoked after the layout is inflated.

@Composable
fun GlimpseView(    onCreate: GlimpseAdapter.() -> Unit,     onResize: GlimpseAdapter.(Offset, Size) -> Unit,     onRender: GlimpseAdapter.() -> Unit,     onDestroy: GlimpseAdapter.() -> Unit,     modifier: Modifier = Modifier,     onClick: () -> Unit? = null,     update: GlimpseViewScope.() -> Unit = NoOpUpdate)

A GlimpseView displays content rendered using Glimpse OpenGL adapter.

Since

v1.1.0

Parameters

onCreate

Called when this GlimpseView is being initialized.

onResize

Called when this GlimpseView is resized.

onRender

Called on each frame when the contents of this GlimpseView are being rendered.

onDestroy

Called when this GlimpseView is being destroyed.

modifier

The modifier to be applied to the layout.

onClick

Called when the user clicks on this GlimpseView.

update

The callback to be invoked after the layout is inflated.


@Composable
expect fun GlimpseView(    callback: GlimpseCallback,     modifier: Modifier = Modifier,     onClick: () -> Unit? = null,     update: GlimpseViewScope.() -> Unit = NoOpUpdate)

A GlimpseView displays content rendered using Glimpse OpenGL adapter and callback interface.

Parameters

callback

The rendering callback interface.

modifier

The modifier to be applied to the layout.

onClick

Called when the user clicks on this GlimpseView.

update

The callback to be invoked after the layout is inflated.

@Composable
actual fun GlimpseView(    callback: GlimpseCallback,     modifier: Modifier = Modifier,     onClick: () -> Unit? = null,     update: GlimpseViewScope.() -> Unit = NoOpUpdate)

A GlimpseView displays content rendered using Glimpse OpenGL adapter and callback interface.

Parameters

callback

The rendering callback interface.

modifier

The modifier to be applied to the layout.

onClick

Called when the user clicks on this GlimpseView.

update

The callback to be invoked after the layout is inflated.