LiveAnnotations

interface LiveAnnotations

Interface defining the methods related to live annotations during a screen sharing session in a specific call. The screen sharing session involves multiple participants in a meeting, and live annotations occur on the shared screen. For the presenter, the live annotation feature should be initialized when the screen share starts. A listener should be set to allow the client to listen to callbacks related to live annotation events. Any annotations made by the requester will be drawn on the presenter's annotation layer upon approval.

Since

API 3.11.0

Functions

Link copied to clipboard
abstract fun getLiveAnnotationsPolicy(): LiveAnnotationsPolicy?

Retrieves the current live annotations policy for the ongoing screen sharing session. The default policy is set to LiveAnnotationsPolicy.NobodyCanAnnotate.

Link copied to clipboard
abstract fun isLiveAnnotationStarted(): Boolean

Checks if live annotation has been started for the ongoing screen sharing session.

Link copied to clipboard
abstract fun respondToLiveAnnotationRequest(    personId: String,     didAccept: Boolean,     completionHandler: CompletionHandler<LiveAnnotationErrorCode>)

Allows responding to a live annotation request for the ongoing screen sharing session. This method is called when a requester asks to annotate. The annotation will start only after the presenter approves the request.

Link copied to clipboard
abstract fun setLiveAnnotationListener(listener: LiveAnnotationListener)

Sets a live annotation listener for the ongoing screen sharing session. This enables the presenter to listen for live annotation events and respond accordingly.

Link copied to clipboard
abstract fun setLiveAnnotationsPolicy(policy: LiveAnnotationsPolicy, completionHandler: CompletionHandler<LiveAnnotationErrorCode>)

Sets the live annotations policy for the ongoing screen sharing session. The default policy is set to LiveAnnotationsPolicy.NobodyCanAnnotate.

Link copied to clipboard
abstract fun stopLiveAnnotations()

Stops live annotations for the ongoing screen sharing session. This method also handles the cleaning process internally, which includes removing the annotation layer.