LiveAnnotationRenderer

class LiveAnnotationRenderer(context: <Error class: unknown class>)

Class responsible for rendering live annotations. It creates a floating annotation layer over the shared screen that allows drawing annotations in real-time.

Since

3.11.0

Parameters

context

The context in which the renderer is created.

Constructors

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

Types

Link copied to clipboard
interface LiveAnnotationRendererCallback

Interface for callbacks related to the rendering of live annotations.

Functions

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

Returns the annotation layer.

Link copied to clipboard
fun renderData(data: String)

Renders the provided data on the live annotation layer.

Link copied to clipboard

Sets the callback for rendering events.

Link copied to clipboard
fun startRendering(): Boolean

Starts the rendering of live annotations. It initializes the session and client if not already done and draws the annotation layer. And notifies when annotation layer is ready to take input for drawing. Give "Display over other apps" permission when prompted during start of screen share to start rendering, else it will fail.

Link copied to clipboard
fun stopRendering()

Stops the rendering of live annotations. It resets the annotation layer, the client, and notifies the callback about the rendering stop.