LiveAnnotationLayer

class LiveAnnotationLayer(context: <Error class: unknown class>, attrs: <Error class: unknown class>?)

A custom view that combines an Annotation SurfaceView for displaying annotations with a CloseButtonView for closing the view.

Since

3.11.0

Parameters

context

The Context in which the view is running.

attrs

The AttributeSet containing any custom attributes for the view.

Constructors

Link copied to clipboard
fun LiveAnnotationLayer(context: <Error class: unknown class>, attrs: <Error class: unknown class>?)

Creates a LiveAnnotationSurfaceView with the given context and attributes.

Functions

Link copied to clipboard
fun getCloseButton(): <Error class: unknown class>

Gets the default CloseButtonView instance used in this view. This can be used to set custom styles like background, text, etc. Note: The default close button has default onClickListeners. Overriding of OnClickListener will require proper handling of stopping the annotation session.

Link copied to clipboard
fun setCustomCloseButton(customCloseButton: <Error class: unknown class>, layoutParams: <Error class: unknown class>? = null)

Sets a custom CloseButtonView to be used instead of the default one.