Video SDK for iOS API Reference
Loading...
Searching...
No Matches
ZoomVideoSDKWhiteboardHelper Class Reference

The whiteboard helper interface. More...

#include <ZoomVideoSDKWhiteboardHelper.h>

Inherits NSObject.

Instance Methods

(ZoomVideoSDKError- subscribeWhiteboard:
 Displays the whiteboard view when someone is sharing the whiteboard.
 
(ZoomVideoSDKError- unSubscribeWhiteboard
 Hides the whiteboard sharing view when someone is sharing the whiteboard.
 
(BOOL) - canStartShareWhiteboard
 Determines whether the current user can start whiteboard sharing. Only the host can start whiteboard sharing.
 
(ZoomVideoSDKError- startShareWhiteboard
 Starts whiteboard sharing in the session.
 
(BOOL) - canStopShareWhiteboard
 Determines whether the current user can stop whiteboard sharing.
 
(ZoomVideoSDKError- stopShareWhiteboard
 Stops whiteboard sharing in the session.
 
(BOOL) - isOtherSharingWhiteboard
 Determines whether another user is currently sharing a whiteboard.
 
(ZoomVideoSDKError- exportWhiteboard:
 Exports the currently shared whiteboard.
 

Detailed Description

The whiteboard helper interface.

Note
IMPORTANT: To prevent whiteboard data loss, developers must call exportWhiteboard: before the following scenarios:

Definition at line 19 of file ZoomVideoSDKWhiteboardHelper.h.

Method Documentation

◆ canStartShareWhiteboard

- (BOOL) canStartShareWhiteboard

Determines whether the current user can start whiteboard sharing. Only the host can start whiteboard sharing.

Returns
YES if the user can start whiteboard sharing. Otherwise, NO.
Note
The whiteboard service is an add-on, be sure to enable it by package zm-annoter and whiteboard module, otherwise this method will always return NO.

◆ canStopShareWhiteboard

- (BOOL) canStopShareWhiteboard

Determines whether the current user can stop whiteboard sharing.

Returns
YES if the user can stop whiteboard sharing. Otherwise, NO.

◆ exportWhiteboard:

Exports the currently shared whiteboard.

Parameters
formatThe export format.
Returns
If the function succeeds, it returns Errors_Success. Otherwise, this function returns an error.
Note
The exported data is delivered via ZoomVideoSDKDelegate::onWhiteboardExported:data:. Be sure to implement this callback in your delegate to handle the exported data.
Warning
During the export process (before receiving the ZoomVideoSDKDelegate::onWhiteboardExported:data: callback), calling stopShareWhiteboard will cause data loss. Wait until the export is complete before stopping the whiteboard share.

◆ isOtherSharingWhiteboard

- (BOOL) isOtherSharingWhiteboard

Determines whether another user is currently sharing a whiteboard.

Returns
YES if another user is sharing whiteboard. Otherwise, NO.

◆ startShareWhiteboard

- (ZoomVideoSDKError) startShareWhiteboard

Starts whiteboard sharing in the session.

Returns
If the function succeeds, it returns Errors_Success. Otherwise, this function returns an error.

◆ stopShareWhiteboard

- (ZoomVideoSDKError) stopShareWhiteboard

Stops whiteboard sharing in the session.

Returns
If the function succeeds, it returns Errors_Success. Otherwise, this function returns an error.

◆ subscribeWhiteboard:

- (ZoomVideoSDKError) subscribeWhiteboard: (UIViewController *) vc

Displays the whiteboard view when someone is sharing the whiteboard.

Parameters
vcThe view controller to attach the whiteboard view to.
Returns
If the function succeeds, it returns Errors_Success. Otherwise, this function returns an error.
Note
The view controller should be hidden when whiteboard sharing is stopped, or the user who is sharing the whiteboard leaves session, or the session is failover for Errors_Session_Reconncting.

◆ unSubscribeWhiteboard

- (ZoomVideoSDKError) unSubscribeWhiteboard

Hides the whiteboard sharing view when someone is sharing the whiteboard.

Returns
If the function succeeds, it returns Errors_Success. Otherwise, this function returns an error.