Live Annotation Layer
class LiveAnnotationLayer(context: <Error class: unknown class>, attrs: <Error class: unknown class>?)
Content copied to clipboard
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>?)
Content copied to clipboard
Creates a LiveAnnotationSurfaceView with the given context and attributes.
Functions
Link copied to clipboard
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)
Content copied to clipboard
Sets a custom CloseButtonView to be used instead of the default one.