ViewAnnotation

fun ViewAnnotation(options: ViewAnnotationOptions, modifier: Modifier = Modifier, onUpdatedListener: OnViewAnnotationUpdatedListener? = null, layoutParams: ViewGroup.LayoutParams = ViewGroup.LayoutParams( FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT ), content: @Composable () -> Unit)

Composable function to add a ViewAnnotation to the Map.

Parameters

options

Various options needed for displaying view annotation.

modifier

Modifier that will be applied to the ComposeView where the view annotation is created.

onUpdatedListener

A listener to be invoked when the ViewAnnotation is updated.

content

The content to draw in the ViewAnnotation