Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKAnnotationHelper Class Reference

Annotation helper interface for Zoom Video SDK. More...

#include <ZMVideoSDKAnnotationHelper.h>

Inherits NSObject.

Instance Methods

(BOOL) - canDoAnnotation
 Whether the current user can do annotation on the share.
 
(BOOL) - isSenderDisableAnnotation
 Whether annotation was disabled or not by the share owner.
 
(ZMVideoSDKErrors- startAnnotation
 Starts annotation.
 
(ZMVideoSDKErrors- stopAnnotation
 Stops annotation.
 
(ZMVideoSDKErrors- setToolColor:
 Set the annotation tool color.
 
(ZMVideoSDKErrors- getToolColor:
 Gets the annotation tool color.
 
(ZMVideoSDKErrors- setToolType:
 Sets the annotation tool type.
 
(ZMVideoSDKErrors- getToolType:
 Gets the annotation tool type.
 
(ZMVideoSDKErrors- setToolWidth:
 Sets the annotation tool width.
 
(ZMVideoSDKErrors- getToolWidth:
 Gets the annotation tool width.
 
(ZMVideoSDKErrors- undo
 Undoes one annotation content step.
 
(ZMVideoSDKErrors- redo
 Redoes one annotation content step.
 
(ZMVideoSDKErrors- clear:
 Clears the annotation content.
 

Detailed Description

Annotation helper interface for Zoom Video SDK.

Definition at line 15 of file ZMVideoSDKAnnotationHelper.h.

Method Documentation

◆ canDoAnnotation

- (BOOL) canDoAnnotation

Whether the current user can do annotation on the share.

Returns
YES means the user can do annotation, otherwise NO.

◆ clear:

Clears the annotation content.

Parameters
typeThe specified clear type.
Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.

◆ getToolColor:

- (ZMVideoSDKErrors) getToolColor: (NSColor *_Nullable *_Nonnull) toolColor

Gets the annotation tool color.

Parameters
toolColorThe current tool color.
Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.

◆ getToolType:

- (ZMVideoSDKErrors) getToolType: (ZMVideoSDKAnnotationToolType *) toolType

Gets the annotation tool type.

Parameters
toolTypeThe current tool type.
Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.

◆ getToolWidth:

- (ZMVideoSDKErrors) getToolWidth: (long *) width

Gets the annotation tool width.

Parameters
widthThe line width of annotations.
Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.

◆ isSenderDisableAnnotation

- (BOOL) isSenderDisableAnnotation

Whether annotation was disabled or not by the share owner.

Returns
YES indicates the annotations is disabled, otherwise NO.
Deprecated
Use ZMVideoSDKAnnotationHelper::canDoAnnotation instead.

◆ redo

- (ZMVideoSDKErrors) redo

Redoes one annotation content step.

Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.

◆ setToolColor:

- (ZMVideoSDKErrors) setToolColor: (NSColor *_Nonnull) toolColor

Set the annotation tool color.

Parameters
toolColorThe specified color
Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.

◆ setToolType:

- (ZMVideoSDKErrors) setToolType: (ZMVideoSDKAnnotationToolType) toolType

Sets the annotation tool type.

Parameters
toolTypeThe specified annotation tool type.
Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.
Warning
The tool type ZMVideoSDKAnnotationToolType_Picker and ZMVideoSDKAnnotationToolType_SpotLight are not support for viewer.

◆ setToolWidth:

- (ZMVideoSDKErrors) setToolWidth: (long) width

Sets the annotation tool width.

Parameters
widthThe specify annotation tool width.
Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.

◆ startAnnotation

- (ZMVideoSDKErrors) startAnnotation

Starts annotation.

Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.

◆ stopAnnotation

- (ZMVideoSDKErrors) stopAnnotation

Stops annotation.

Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.

◆ undo

- (ZMVideoSDKErrors) undo

Undoes one annotation content step.

Returns
If the function succeeds, it will return ZMVideoSDKErrors_Success.