logo
On this page

Class

2026-01-23
ZegoCreateFileConfigZegoCreateWhiteboardConfig
ZegoSuperBoardCursorAttributeZegoSuperBoardCursorTitleStyle
ZegoSuperBoardInitConfigZegoSuperBoardManager
ZegoSuperBoardManager+FileZegoSuperBoardManager+WhiteBoard
ZegoSuperBoardSubViewZegoSuperBoardSubViewModel
ZegoSuperBoardViewZegoUploadCustomH5Config

ZegoCreateFileConfig

Details

The interface parameters are used to construct the class, passing in the parameters needed to create the file.

  • Use cases: The createFileView interface is needed in the call.

Declared in ZegoCreateFileConfig.h

Properties

fileID

fileID
nonatomic,copy NSString * fileID

ID of the file

Required or not: Mandatory

  • Available since: v2.0.0

ZegoCreateWhiteboardConfig

Details

The interface parameters are used to construct the class with the parameters that are passed in to create the whiteboard.

  • Use cases: In the call to createWhiteboardView the interface is passed in.

Declared in ZegoCreateWhiteboardConfig.h

Properties

name

name
nonatomic,copy NSString * name

Create whiteboard Is the name of the whiteboard to be set.

Required or not: Mandatory

Value range value can contain 128 bytes and can be in Both Chinese and English.

  • Available since: v2.0.0

perPageWidth

perPageWidth
nonatomic,assign NSInteger perPageWidth

Width of each whiteboard page.

Required or not: Mandatory

  • Value range: Positive integer greater than 0.
  • Available since: 2.0.0及以上

perPageHeight

perPageHeight
nonatomic,assign NSInteger perPageHeight

Height of each whiteboard page.

Required or not: Mandatory

  • Value range: Positive integer greater than 0.
  • Available since: v2.0.0

pageCount

pageCount
nonatomic,assign NSInteger pageCount

Total number of pages。

Required or not: Mandatory

  • Value range: Greater than 0.
  • Available since: v2.0.0

ZegoSuperBoardCursorAttribute

Details

Detailed description: The interface parameter construction class uses the parameters required by the incoming cursor style.

Business scenario: It needs to be passed when calling the [setCustomCursorAttribute:cursorAttribute:complete:] interface.

Declared in ZegoSuperBoardCursorAttribute.h

Properties

iconPath

iconPath
nonatomic, copy NSString * iconPath
  • Default value: Supported version: v2.4.0

offsetX

offsetX
nonatomic, assign CGFloat offsetX
  • Default value: 0 Supported version: v2.4.0

offsetY

offsetY
nonatomic, assign CGFloat offsetY
  • Default value: 18 Supported version: v2.4.0

titleStyle

titleStyle
nonatomic, strong ZegoSuperBoardCursorTitleStyle titleStyle
  • Default value: Refer to ZegoSuperBoardCursorTitleStyle class Supported version: v2.4.0

ZegoSuperBoardCursorTitleStyle

Cursor custom text information

Details

Cursor custom text information Business scenario: Available when you need to display cursor custom text

Declared in ZegoSuperBoardCursorTitlePosition.h

Properties

title

title
nonatomic, copy NSString * title

Cursor custom text content

  • Required: no
  • Default value: ""
  • Recommended value: User login name display
  • Value range: 15 characters or less

bold

bold
nonatomic, assign BOOL bold

Whether the cursor custom text is bold

  • Required: no
  • Default value: false

italic

italic
nonatomic, assign BOOL italic

Whether the cursor custom text is italic

  • Required: no
  • Default value: false

size

size
nonatomic, assign int size

Cursor custom text font size

  • Required: 否
  • Default value: 16
  • Value range: 12-20

color

color
nonatomic, strong int color

Cursor custom text font color

  • Required: no
  • Default value: white

backgroundColor

backgroundColor
nonatomic, strong int backgroundColor

Cursor custom text font background color

  • Required: no

position

position
nonatomic, assign ZegoSuperBoardCursorTitlePosition position

Customize the position of the text relative to the cursor

  • Required: no

ZegoSuperBoardInitConfig

Details

The interface parameters are used to construct the class, and the parameters needed to initialize the SDK are initialized with the constructs.

  • Use cases: The init SDK interface initWithConfig needs to be passed in.

Declared in ZegoSuperBoardInitConfig.h

Properties

appID

appID
nonatomic,assign long appID

ZEGO application ID for developers, please apply from ZEGO management console.

Required or not: Mandatory

Reference range: 0-4294967295.

token

token
nonatomic,copy NSString * token

The login verification token is obtained by registering the project in the instant console to obtain the key plus the specified algorithm. The test phase can be obtained through the interface provided by ZEGO, and the formal environment must be implemented by the user.

userID

userID
public NSString * userID

User ID, please do not fill in sensitive user information in this field, including but not limited to mobile phone number, ID number, passport number, real name, etc.

appSign

appSign
public NSString * appSign
  • Value range: Detailed description: Value range: '0' ~ '9', 'a' ~ 'z'. Example: "9dc9a25bh2f2137446897071c8c033fa33b91c3dd2a85e0c000ae82c0dad3". Version 2.3.0 and above appSign allows to pass blank or no pass. If it is empty or not passed, you can pass the token for initialization.please refer to Using Token Authentication.

cacheFolder

cacheFolder
public NSString * cacheFolder

cache directory

logFolder

logFolder
public NSString * logFolder

log directory

ZegoSuperBoardManager+File

Properties

toolType

toolType
nonatomic,assign,readwrite ZegoSuperBoardTool toolType

Different tool types can be set to draw different primitives on the whiteboard.

Calling time: After initializing the ZegSuperBoard SDK.

  • Available since: v2.0.0

brushColor

brushColor
nonatomic,strong, readwrite UIColor * brushColor

After selecting the brush tool type and setting brushColor, the new paint color on the whiteboard takes effect.

When to call

ZegSuperBoard SDK is initialized.

  • Caution: Only the new graffiti after setting the pen color will take effect. If the graffiti already exists on the whiteboard before, it will not be changed to the color.
  • Available since: v2.0.0

brushSize

brushSize
nonatomic,assign, readwrite NSUInteger brushSize

Select the brush tool type, set brushSize value, and the new graffiti thickness on the whiteboard is the set value.

When to call

ZegSuperBoard SDK is initialized.

  • Caution: The newly added graffiti after only setting the brush thickness has a new thickness effect. The graffiti on the whiteboard will not be changed to the thickness.
  • Available since: v2.0.0

fontSize

fontSize
nonatomic,assign, readwrite NSUInteger fontSize

Select the type of text tool, set fontSize, the new text on the whiteboard is the size after setting.

  • Value range: an integer greater than 0

When to call

ZegSuperBoard SDK is initialized.

  • Caution: Only the new text after calling setFontSize will take effect. For example, the existing text on the whiteboard will not be changed to the font size.
  • Available since: v2.0.0

isFontBold

isFontBold
nonatomic,assign, readwrite BOOL isFontBold

After selecting the type of text tool, calling setFontBold and setting it to YES, the newly added text on the whiteboard is all bold.

When to call

ZegSuperBoard SDK is initialized.

  • Caution: Only the newly-added text after setting the text bold will have the bold effect. For example, the existing text on the whiteboard will not be changed to the bold effect.
  • Available since: 2.0.0

isFontItalic

isFontItalic
nonatomic, assign, readwrite BOOL isFontItalic

When the currently used tool type is text, call isFontItalic to get whether to set the italic effect

When to call

ZegSuperBoard SDK is initialized.

  • Available since: v2.0.0

customText

customText
nonatomic, copy, readwrite NSString * customText

Users can customize the default text of the text tools.

  • Available since: v2.0.0

enableSyncScale

enableSyncScale
nonatomic, assign, readwrite BOOL enableSyncScale

After enabling, you can send out the zoom of the local end. Whether the peer end wants to accept it, you need to enable the peer end to accept the zoom.

  • Use cases: Synchronize the zooming of the whiteboard on the operating end and the receiving end.
  • When to call: After ZegSuperboard SDK is initialized.
  • Caution: To achieve dual-ended zoom synchronization, you need to set enableSyncScale and enableResponseScale at the same time
  • Related callbacks: scaling changes occur on the peer end, and the receiving end can monitor the changed parameters through remoteSuperBoardScaleChanged.
  • Available since: v2.0.0

enableResponseScale

enableResponseScale
nonatomic, assign, readwrite BOOL enableResponseScale

After it is turned on, it can respond to the zooming of other members in the room, provided that the peer end synchronizes the zooming to other members in the room.

  • Use cases: Synchronize the zooming of the whiteboard on the operating end and the receiving end.
  • When to call: After ZegSuperboard SDK is initialized.
  • Caution: To achieve dual-ended zoom synchronization, you need to set enableSyncScale and enableResponseScale at the same time
  • Related callbacks: scaling changes occur on the peer end, and the receiving end can monitor the changed parameters through remoteSuperBoardScaleChanged.
  • Available since: v2.0.0

enableHandwriting

enableHandwriting
nonatomic, assign, readwrite BOOL enableHandwriting

Set whether the whiteboard graffiti has a pen sharp effect. If set to true, the graffiti will have a pen sharp effect.

  • Use cases: Adjust the thickness and shape of the strokes according to the speed of the graffiti drawing process to enhance the writing experience.
  • When to call: Initialize the SDK, after rendering the whiteboard.
  • Available since: v2.0.0

delegate

delegate
nonatomic, weak id<ZegoSuperBoardManagerDelegate> delegate

Set the agent of ZegoSuperBoardManager, you can implement the corresponding agent method to monitor the SDK superBoardSubView to add, destroy, switch, SDK exception, etc.

  • Use cases: You need to update the superBoardSubView by adding, destroying, and switching.
  • Available since: v2.0.0

superBoardView

superBoardView
nonatomic, strong,readonly ZegoSuperBoardView * superBoardView

Open the SuperBoardView mode to get the object.

  • Use cases: SuperBoardView mode is turned on, use the method on the object to switch the whiteboard on the A side, and the B side will automatically synchronize.
  • Default value: Get the object by default

When to call

initializing ZegoSuperboard SDK.

  • Caution: If you use the enableSuperBoardView interface and set it to false, you cannot get the SuperBoardView object.
  • Available since: v2.0.0

superBoardSubViewModelList

superBoardSubViewModelList
nonatomic, strong,readonly NSArray <ZegoSuperBoardSubViewModel *> * superBoardSubViewModelList

Through superBoardSubViewModelList, access to the current existing superBoardSubView room number and superBoardSubView information.

  • Use cases: After entering the room, you need to obtain the superBoardSubView list in the room for display, and switch the current superBoardSubView in the list.

When to call

initializing ZegoSuperboard SDK.

  • Available since: v2.0.0

enableCustomCursor

enableCustomCursor
nonatomic, assign, readwrite BOOL enableCustomCursor

Detailed description: Set whether to enable custom cursor, set to true to display the cursor. The default is true

Business scenario: the cursor function is displayed during the graffiti process.

Timing of calling: After initializing the SDK.

Supported version: v2.2.0

enableRemoteCursorVisible

enableRemoteCursorVisible
nonatomic, assign, readwrite BOOL enableRemoteCursorVisible

Detailed description: Set whether to display the remote cursor or not, set to true to display the remote cursor. The default is true.

Business scenario: display the remote cursor function during the graffiti process.

Timing of calling: After initializing the SDK.

Supported version: v2.2.0

superBoardMaxScaleFactor

superBoardMaxScaleFactor
nonatomic, assign, readwrite CGFloat superBoardMaxScaleFactor

Method description: Set the maximum zoom factor of Super Whiteboard (file and whiteboard), which is 3x by default. The range that can be set is [1,10] Call timing: After initialization, before creating the file/whiteboard, and after unInit expires.

Methods

sharedInstance

static
sharedInstance
+ (ZegoSuperBoardManager *)sharedInstance;
Get ZegoSuperBoardManager instance object
  • When to call /Trigger: After integrating ZegoSuperBoard SDK, before initializing ZegoSuperBoard SDK.
  • Available since: v2.0.0

Detailed description: Get the ZegoSuperBoardManager instance object to call the interface method in ZegoSuperBoardManager.

ZegoSuperBoardManager instance object

uploadFile:filePath:renderType:completionBlock:

uploadFile:filePath:renderType:completionBlock:
- (ZegoSuperBoardSeq)uploadFile:(nonnull NSString *) filePath renderType:(ZegoSuperBoardRenderType) renderType completionBlock:(nonnull ZegoSuperBoardUploadBlock) completionBlock;
Upload files to the ZegoSuperBoard service

Parameters

NameTypeDescription
filePathnonnull NSString *The absolute path of the files to be uploaded can be PPT, PDF, XLS, JPG, JPEG, PNG, BMP, and TXT files. For details, please refer to File specifications.
renderTypeZegoSuperBoardRenderTypeAfter the upload file transcoding rendering mode type, suggest set to ZegoSuperBoardRenderTypeVectorAndIMG, see ZegoSuperBoardRenderType.
completionBlocknonnull ZegoSuperBoardUploadBlockUpload progress and result callback. During the process of uploading a file, you will receive multiple callback in [completionBlock]. For details, see ZegoSuperBoardUploadBlock

Details

During the upload process, the SDK will format the file according to the passed [renderType]. After the format conversion, the rendering mode of the file depends on the passed [renderType]. The progress information of the upload can be obtained in the result callback

  • Use cases: Upload files to the ZegoDocs service.
  • Caution: There will be multiple callbacks during the upload phase, please refer to the definition of ZegoSuperBoardUploadState for details

When to call

ZegSuperBoard SDK is initialized.

  • Available since: v2.0.0

Return

Return the request seq to upload the file

cancelUploadFileWithSeq:seq:completionBlock:

cancelUploadFileWithSeq:seq:completionBlock:
- (void)cancelUploadFileWithSeq:(ZegoSuperBoardSeq) seq completionBlock:(ZegoSuperBoardCancelUploadComplementBlock) completionBlock;
Cancel the upload action during file upload

Parameters

NameTypeDescription
seqZegoSuperBoardSeqUpload seq returned when uploadFile is called.
completionBlockZegoSuperBoardCancelUploadComplementBlockCancel upload file result callback.

Details

To cancel the file upload operation, the seQ of the corresponding upload task must be passed.

  • Use cases: File uploading to the ZegoDocs service is interrupted during the process.

When to call

when the uploadFile interface is in the process of uploading a file.

cacheFileWithFileID:fileID:completionBlock:

cacheFileWithFileID:fileID:completionBlock:
- (ZegoSuperBoardSeq)cacheFileWithFileID:(nonnull NSString *) fileID completionBlock:(ZegoSuperBoardCacheBlock) completionBlock;
Cache files to local storage

Parameters

NameTypeDescription
fileIDnonnull NSString *The fileID to be cached.
completionBlockZegoSuperBoardCacheBlockThe callback that contains the progress and result of file download operation

Details

You can save the corresponding file to the local.

  • Use cases: Save the file to the local directory. You do not need to request the network to open the file next time, which improves the opening speed.
  • When to call: You need to call it after initWithConfig.
  • Available since: v2.0.0

Return

The sequence number of caching operation

cancelCacheFileWithSeq:seq:completionBlock:

cancelCacheFileWithSeq:seq:completionBlock:
- (void)cancelCacheFileWithSeq:(ZegoSuperBoardSeq) seq completionBlock:(ZegoSuperBoardCancelCacheComplementBlock) completionBlock;
Cancel the cache action in the process of caching files

Parameters

NameTypeDescription
seqZegoSuperBoardSeqThe sequence number of caching operation.
completionBlockZegoSuperBoardCancelCacheComplementBlockCallback when cancelling finishes.

Details

You can cancel the operation that is caching the file. You need to pass in the seQ corresponding to the operation of caching the file. After canceling the operation, the file will not be cached locally.

  • Use cases: The cancelCacheFile method can be called to cancel the operation that needs to be interrupted during the execution of the cache file.
  • When to call: You need to call it after initWithConfig.
  • Related APIs: cacheFile.
  • Available since: v2.0.0

Return

Operation results

queryFileCachedWithFileID:fileID:completionBlock:

queryFileCachedWithFileID:fileID:completionBlock:
- (void)queryFileCachedWithFileID:(nonnull NSString *) fileID completionBlock:(ZegoSuperBoardQueryCachedCompletionBlock) completionBlock;
Check if the file cache exists

Parameters

NameTypeDescription
fileIDnonnull NSString *The ID of the file to be queried.
completionBlockZegoSuperBoardQueryCachedCompletionBlockCallback when query operation finishes.

Details

The ID of the corresponding file can be used to check whether the file has been cached locally.

  • Use cases: None Example Query whether the file cache exists.
  • When to call: You need to call it after initWithConfig.
  • Related APIs: cancelCacheFile.
  • Available since: v2.0.0

uploadH5File:filePath:config:completionBlock:

uploadH5File:filePath:config:completionBlock:
- (ZegoSuperBoardSeq)uploadH5File:(nonnull NSString *) filePath config:(ZegoUploadCustomH5Config *) config completionBlock:(ZegoSuperBoardUploadBlock) completionBlock;
Upload custom H5 courseware

Parameters

NameTypeDescription
filePathnonnull NSString *Local path for custom courseware
configZegoUploadCustomH5Config *Configuration of H5 courseware customization
completionBlockZegoSuperBoardUploadBlock

Details

During the upload process, SDK will convert the format of the file according to the incoming [config]. After the format conversion, the width and height of the page number of the file and whether the thumbnail is included depend on the incoming [config]. The progress information of the upload can be obtained in the result callback.

  • Use cases: Upload custom H5 courseware.
  • When to call: You need to call it after the initialization is successful.
  • Available since: v2.0.0

Return

Return the result seq of uploadH5File method

setSuperBoardMaxScaleFactor:scaleFactor:

setSuperBoardMaxScaleFactor:scaleFactor:
- (void)setSuperBoardMaxScaleFactor:(Float) scaleFactor;
Set the maximum zoom factor of Super Whiteboard (file and whiteboard), which is 3x by default. The range that can be set is [1,10]

Parameters

NameTypeDescription
scaleFactorFloatDescription
maximum zoom factor of Super Whiteboard (file and whiteboard)

Details

Set the maximum zoom factor of Super Whiteboard (file and whiteboard), which is 3x by default. The range that can be set is [1,10]

  • When to call /Trigger: After initialization, before creating the file/whiteboard, and after unInit expires.
  • Available since: 2.3.7

renewToken:token:

renewToken:token:
- (void)renewToken:(NSString *) token;
update token

Parameters

NameTypeDescription
tokenNSString *A token to be updated.
  • Default value: None

Call time: after initializing the SDK, with the help of the upcoming expiration callback [tokenwillexpire] interface of zego SDK, receive the upcoming expiration callback of the token, and actively update the file service token of the super whiteboard.

Scope of influence: the expiration time contained in the token will trigger the [tokenwillexpire] callback 30s before expiration

Related callback: [tokenwillexpire]

Related interfaces: None

  • Platform differences: None

setManagerListener:listener:

setManagerListener:listener:
- (void)setManagerListener:(ZegoSuperBoardManagerDelegate) listener;
set callback for SDK

Parameters

NameTypeDescription
listenerZegoSuperBoardManagerDelegateMonitor whiteboard callback information
  • When to call /Trigger: after init
  • Available since: v2.0.0

initWithConfig:config:complete:

initWithConfig:config:complete:
- (void)initWithConfig:(ZegoSuperBoardInitConfig *) config complete:(ZegoSuperBoardManagerBlock) complete;
Initialize the ZegoSuperBoard SDK

Parameters

NameTypeDescription
configZegoSuperBoardInitConfig *Configuration information required for SDK initialization
completeZegoSuperBoardManagerBlockInitialization result callback

Details

Method to initialize the ZegoSuperBoard SDK.

  • Use cases: Initialize the ZegoSuperBoard SDK.
  • When to call: Before calling the ZegoExpressEngine SDK's loginRoom interface
  • Related APIs: unInit.
  • Available since: v2.0.0

setCustomizedConfig:value:key:

setCustomizedConfig:value:key:
- (void)setCustomizedConfig:(nonnull NSString *) value key:(nonnull NSString *) key;
Setting initialization parameters is optional<br/>For example:<br/>The key value is logPath, which is the directory where the SDK records logs.<br/>The key value is cachePath, the address of the directory cached by the SDK.

Parameters

NameTypeDescription
valuenonnull NSString *value description
keynonnull NSString *key description
  • When to call: Called after initializing the Superboard SDK
  • Available since: v2.0.0

Return

Whether the setting is successful

enableSuperBoardView:enable:

enableSuperBoardView:enable:
- (void)enableSuperBoardView:(BOOL) enable;
Set whether to use SuperBoardView

Parameters

NameTypeDescription
enableBOOLYES: SuperBoardView is used. NO: SuperBoardView is not used,The default is YES

Details

Set whether to use SuperBoardView.

When to call : Before initializing the SDK.

Open by default

  • Available since: v2.0.0

createWhiteboardView:config:complete:

createWhiteboardView:config:complete:
- (void)createWhiteboardView:(nonnull ZegoCreateWhiteboardConfig *) config complete:(ZegoSuperBoardManagerCreateBlock) complete;
Creating a pure whiteboard

Parameters

NameTypeDescription
confignonnull ZegoCreateWhiteboardConfig *Pure Whiteboard configuration parameters
completeZegoSuperBoardManagerCreateBlockCreates a result callback for a pure whiteboard

Details

After the creation is successful, the corresponding SubView will be saved internally and its subViewModel data will be returned.

  • When to call: After initializing the ZegoSuperboard SDK, calling [loginRoom] to log in to the room, when you need to create a pure whiteboard.

createFileView:config:complete:

createFileView:config:complete:
- (void)createFileView:(nonnull ZegoCreateFileConfig *) config complete:(ZegoSuperBoardManagerCreateBlock) complete;
Create a file

Parameters

NameTypeDescription
confignonnull ZegoCreateFileConfig *The configuration parameters required to create the file
completeZegoSuperBoardManagerCreateBlockCreate the result callback for the file

Details

After the creation is successful, the corresponding SubView will be saved internally and its subViewModel data will be returned.

When to Call: Initialize the ZegoSuperboard SDK and call [loginRoom] to login to the room when the file needs to be created.

destroySuperBoardSubView:uniqueID:complete:

destroySuperBoardSubView:uniqueID:complete:
- (void)destroySuperBoardSubView:(NSString *) uniqueID complete:(ZegoSuperBoardManagerBlock) complete;
Destroys the specified SuperBoardSubView view

Parameters

NameTypeDescription
uniqueIDNSString *Unique identifier of the ZegoSuperBoardSubView object
completeZegoSuperBoardManagerBlockDestroys the result callback for the specified SuperBoardSubView

Details

Available Since: v2.0.0

When to call

the call querySuperBoardSubViewList pull to list or superBoardSubViewModelList get called when the model number greater than zero.

querySuperBoardSubViewList:complete:

querySuperBoardSubViewList:complete:
- (void)querySuperBoardSubViewList:(void(^)(ZegoSuperBoardError errorCode,NSArray <ZegoSuperBoardSubViewModel *>*superBoardViewList)) complete;
Query the server for the list of SuperBoardSubView that currently exists

Parameters

NameTypeDescription
completevoid(^)(ZegoSuperBoardError errorCode,NSArray <ZegoSuperBoardSubViewModel *>*superBoardViewList)Gets the resulting callback for the SuperBoardSubView list

Details

Pull down the whiteboard in the current room at one time, SDK internal will be associated with the file in the whiteboard file also loaded down, these whiteboard and file SDK internal processing mapping added to the ZegoSuperBoardSubView, external only need to use ZegoSuperBoardView.

When to call

the SDK and call it after logging in to the room.

  • Available since: v2.0.0

getSuperBoardSubView:uniqueID:

getSuperBoardSubView:uniqueID:
- (ZegoSuperBoardSubView *)getSuperBoardSubView:(NSString *) uniqueID;
Gets the specified SuperBoardSubView

Parameters

NameTypeDescription
uniqueIDNSString *Unique identifier of the ZegoSuperBoardSubView object
  • When to call: Initialize the SDK, enter the room successfully, get the SuperBoardSubView list after the call.

Limited to scenarios where SuperBoardView is not used (set by enableSuperBoardView

  • Available since: v2.0.0

clearCache

clearCache
- (void)clearCache;
Clear cache resources related to files and whiteboards
  • Available since: v2.0.0

Calling time: Initialization, after entering the room, the SDK needs to call it actively before exiting the room to clean up the resources in the room.

clear

clear
- (void)clear;
Empty resources in the room called upon checkout

When checking out, you need to clear the cache information in the room and stop media playback.

  • When to call: You need to call it before you check out.
  • Available since: v2.0.0

unInit

unInit
- (void)unInit;
Uninitialize the SDK
  • When to call: When you need to reinitialize the SDK, you must first call unInit.
  • Available since: v2.0.0

getSDKVersion

getSDKVersion
- (NSString *)getSDKVersion;
Obtain the SDK version number

Obtain the SDK version number.

  • Use cases:
  1. When the SDK is running, if the developer finds the discrepancy with the expected situation, the developer can submit the problem and related logs to the ZEGO technical personnel for locating the problem. The ZEGO technical personnel may need the SDK version information to assist locating the problem.
  2. Developers can also collect this information as the VERSION information of the SDK used by the App, so as to make statistics of the SDK corresponding to each version of the App online.
  • When to call: It can be called at any time.
  • Available since: v2.0.0

Version number of the SDK

getCustomizedConfig:key:

getCustomizedConfig:key:
- (NSString *)getCustomizedConfig:(nonnull NSString *) key;
Get the value of the set configuration item

Parameters

NameTypeDescription
keynonnull NSString *

Details

Get the value of the set configuration item.

  • When to call: After initializing the Superboard SDK, after calling setCustomizedConfig.
  • Available since: 2.0.0

ZegoSuperBoardManager+WhiteBoard

Properties

toolType

toolType
nonatomic,assign,readwrite ZegoSuperBoardTool toolType

Different tool types can be set to draw different primitives on the whiteboard.

Calling time: After initializing the ZegSuperBoard SDK.

  • Available since: v2.0.0

brushColor

brushColor
nonatomic,strong, readwrite UIColor * brushColor

After selecting the brush tool type and setting brushColor, the new paint color on the whiteboard takes effect.

When to call

ZegSuperBoard SDK is initialized.

  • Caution: Only the new graffiti after setting the pen color will take effect. If the graffiti already exists on the whiteboard before, it will not be changed to the color.
  • Available since: v2.0.0

brushSize

brushSize
nonatomic,assign, readwrite NSUInteger brushSize

Select the brush tool type, set brushSize value, and the new graffiti thickness on the whiteboard is the set value.

When to call

ZegSuperBoard SDK is initialized.

  • Caution: The newly added graffiti after only setting the brush thickness has a new thickness effect. The graffiti on the whiteboard will not be changed to the thickness.
  • Available since: v2.0.0

fontSize

fontSize
nonatomic,assign, readwrite NSUInteger fontSize

Select the type of text tool, set fontSize, the new text on the whiteboard is the size after setting.

  • Value range: an integer greater than 0

When to call

ZegSuperBoard SDK is initialized.

  • Caution: Only the new text after calling setFontSize will take effect. For example, the existing text on the whiteboard will not be changed to the font size.
  • Available since: v2.0.0

isFontBold

isFontBold
nonatomic,assign, readwrite BOOL isFontBold

After selecting the type of text tool, calling setFontBold and setting it to YES, the newly added text on the whiteboard is all bold.

When to call

ZegSuperBoard SDK is initialized.

  • Caution: Only the newly-added text after setting the text bold will have the bold effect. For example, the existing text on the whiteboard will not be changed to the bold effect.
  • Available since: 2.0.0

isFontItalic

isFontItalic
nonatomic, assign, readwrite BOOL isFontItalic

When the currently used tool type is text, call isFontItalic to get whether to set the italic effect

When to call

ZegSuperBoard SDK is initialized.

  • Available since: v2.0.0

customText

customText
nonatomic, copy, readwrite NSString * customText

Users can customize the default text of the text tools.

  • Available since: v2.0.0

enableSyncScale

enableSyncScale
nonatomic, assign, readwrite BOOL enableSyncScale

After enabling, you can send out the zoom of the local end. Whether the peer end wants to accept it, you need to enable the peer end to accept the zoom.

  • Use cases: Synchronize the zooming of the whiteboard on the operating end and the receiving end.
  • When to call: After ZegSuperboard SDK is initialized.
  • Caution: To achieve dual-ended zoom synchronization, you need to set enableSyncScale and enableResponseScale at the same time
  • Related callbacks: scaling changes occur on the peer end, and the receiving end can monitor the changed parameters through remoteSuperBoardScaleChanged.
  • Available since: v2.0.0

enableResponseScale

enableResponseScale
nonatomic, assign, readwrite BOOL enableResponseScale

After it is turned on, it can respond to the zooming of other members in the room, provided that the peer end synchronizes the zooming to other members in the room.

  • Use cases: Synchronize the zooming of the whiteboard on the operating end and the receiving end.
  • When to call: After ZegSuperboard SDK is initialized.
  • Caution: To achieve dual-ended zoom synchronization, you need to set enableSyncScale and enableResponseScale at the same time
  • Related callbacks: scaling changes occur on the peer end, and the receiving end can monitor the changed parameters through remoteSuperBoardScaleChanged.
  • Available since: v2.0.0

enableHandwriting

enableHandwriting
nonatomic, assign, readwrite BOOL enableHandwriting

Set whether the whiteboard graffiti has a pen sharp effect. If set to true, the graffiti will have a pen sharp effect.

  • Use cases: Adjust the thickness and shape of the strokes according to the speed of the graffiti drawing process to enhance the writing experience.
  • When to call: Initialize the SDK, after rendering the whiteboard.
  • Available since: v2.0.0

delegate

delegate
nonatomic, weak id<ZegoSuperBoardManagerDelegate> delegate

Set the agent of ZegoSuperBoardManager, you can implement the corresponding agent method to monitor the SDK superBoardSubView to add, destroy, switch, SDK exception, etc.

  • Use cases: You need to update the superBoardSubView by adding, destroying, and switching.
  • Available since: v2.0.0

superBoardView

superBoardView
nonatomic, strong,readonly ZegoSuperBoardView * superBoardView

Open the SuperBoardView mode to get the object.

  • Use cases: SuperBoardView mode is turned on, use the method on the object to switch the whiteboard on the A side, and the B side will automatically synchronize.
  • Default value: Get the object by default

When to call

initializing ZegoSuperboard SDK.

  • Caution: If you use the enableSuperBoardView interface and set it to false, you cannot get the SuperBoardView object.
  • Available since: v2.0.0

superBoardSubViewModelList

superBoardSubViewModelList
nonatomic, strong,readonly NSArray <ZegoSuperBoardSubViewModel *> * superBoardSubViewModelList

Through superBoardSubViewModelList, access to the current existing superBoardSubView room number and superBoardSubView information.

  • Use cases: After entering the room, you need to obtain the superBoardSubView list in the room for display, and switch the current superBoardSubView in the list.

When to call

initializing ZegoSuperboard SDK.

  • Available since: v2.0.0

enableCustomCursor

enableCustomCursor
nonatomic, assign, readwrite BOOL enableCustomCursor

Detailed description: Set whether to enable custom cursor, set to true to display the cursor. The default is true

Business scenario: the cursor function is displayed during the graffiti process.

Timing of calling: After initializing the SDK.

Supported version: v2.2.0

enableRemoteCursorVisible

enableRemoteCursorVisible
nonatomic, assign, readwrite BOOL enableRemoteCursorVisible

Detailed description: Set whether to display the remote cursor or not, set to true to display the remote cursor. The default is true.

Business scenario: display the remote cursor function during the graffiti process.

Timing of calling: After initializing the SDK.

Supported version: v2.2.0

superBoardMaxScaleFactor

superBoardMaxScaleFactor
nonatomic, assign, readwrite CGFloat superBoardMaxScaleFactor

Method description: Set the maximum zoom factor of Super Whiteboard (file and whiteboard), which is 3x by default. The range that can be set is [1,10] Call timing: After initialization, before creating the file/whiteboard, and after unInit expires.

Methods

sharedInstance

static
sharedInstance
+ (ZegoSuperBoardManager *)sharedInstance;
Get ZegoSuperBoardManager instance object
  • When to call /Trigger: After integrating ZegoSuperBoard SDK, before initializing ZegoSuperBoard SDK.
  • Available since: v2.0.0

Detailed description: Get the ZegoSuperBoardManager instance object to call the interface method in ZegoSuperBoardManager.

ZegoSuperBoardManager instance object

setCustomFontWithName:regularFontName:boldFontName:

setCustomFontWithName:regularFontName:boldFontName:
- (void)setCustomFontWithName:(NSString *) regularFontName boldFontName:(NSString *) boldFontName;
Set custom new font

Parameters

NameTypeDescription
regularFontNameNSString *Font name of regular font. Please contact technical support to obtain the font.
boldFontNameNSString *Font name of the bold font. Please contact technical support to obtain the font.

Details

You need to set a new custom font style for the text tool on the whiteboard.

  • Use cases: Set custom new fonts.
  • When to call: This is called after the whiteboard or file has been created.
  • Caution: Only specific fonts are supported, and the font files provided by us need to be built into the project, please contact technical support to obtain the font file and the corresponding font name.
  • Available since: v2.0.0

setSuperBoardMaxScaleFactor:scaleFactor:

setSuperBoardMaxScaleFactor:scaleFactor:
- (void)setSuperBoardMaxScaleFactor:(Float) scaleFactor;
Set the maximum zoom factor of Super Whiteboard (file and whiteboard), which is 3x by default. The range that can be set is [1,10]

Parameters

NameTypeDescription
scaleFactorFloatDescription
maximum zoom factor of Super Whiteboard (file and whiteboard)

Details

Set the maximum zoom factor of Super Whiteboard (file and whiteboard), which is 3x by default. The range that can be set is [1,10]

  • When to call /Trigger: After initialization, before creating the file/whiteboard, and after unInit expires.
  • Available since: 2.3.7

renewToken:token:

renewToken:token:
- (void)renewToken:(NSString *) token;
update token

Parameters

NameTypeDescription
tokenNSString *A token to be updated.
  • Default value: None

Call time: after initializing the SDK, with the help of the upcoming expiration callback [tokenwillexpire] interface of zego SDK, receive the upcoming expiration callback of the token, and actively update the file service token of the super whiteboard.

Scope of influence: the expiration time contained in the token will trigger the [tokenwillexpire] callback 30s before expiration

Related callback: [tokenwillexpire]

Related interfaces: None

  • Platform differences: None

setManagerListener:listener:

setManagerListener:listener:
- (void)setManagerListener:(ZegoSuperBoardManagerDelegate) listener;
set callback for SDK

Parameters

NameTypeDescription
listenerZegoSuperBoardManagerDelegateMonitor whiteboard callback information
  • When to call /Trigger: after init
  • Available since: v2.0.0

initWithConfig:config:complete:

initWithConfig:config:complete:
- (void)initWithConfig:(ZegoSuperBoardInitConfig *) config complete:(ZegoSuperBoardManagerBlock) complete;
Initialize the ZegoSuperBoard SDK

Parameters

NameTypeDescription
configZegoSuperBoardInitConfig *Configuration information required for SDK initialization
completeZegoSuperBoardManagerBlockInitialization result callback

Details

Method to initialize the ZegoSuperBoard SDK.

  • Use cases: Initialize the ZegoSuperBoard SDK.
  • When to call: Before calling the ZegoExpressEngine SDK's loginRoom interface
  • Related APIs: unInit.
  • Available since: v2.0.0

setCustomizedConfig:value:key:

setCustomizedConfig:value:key:
- (void)setCustomizedConfig:(nonnull NSString *) value key:(nonnull NSString *) key;
Setting initialization parameters is optional<br/>For example:<br/>The key value is logPath, which is the directory where the SDK records logs.<br/>The key value is cachePath, the address of the directory cached by the SDK.

Parameters

NameTypeDescription
valuenonnull NSString *value description
keynonnull NSString *key description
  • When to call: Called after initializing the Superboard SDK
  • Available since: v2.0.0

Return

Whether the setting is successful

enableSuperBoardView:enable:

enableSuperBoardView:enable:
- (void)enableSuperBoardView:(BOOL) enable;
Set whether to use SuperBoardView

Parameters

NameTypeDescription
enableBOOLYES: SuperBoardView is used. NO: SuperBoardView is not used,The default is YES

Details

Set whether to use SuperBoardView.

When to call : Before initializing the SDK.

Open by default

  • Available since: v2.0.0

createWhiteboardView:config:complete:

createWhiteboardView:config:complete:
- (void)createWhiteboardView:(nonnull ZegoCreateWhiteboardConfig *) config complete:(ZegoSuperBoardManagerCreateBlock) complete;
Creating a pure whiteboard

Parameters

NameTypeDescription
confignonnull ZegoCreateWhiteboardConfig *Pure Whiteboard configuration parameters
completeZegoSuperBoardManagerCreateBlockCreates a result callback for a pure whiteboard

Details

After the creation is successful, the corresponding SubView will be saved internally and its subViewModel data will be returned.

  • When to call: After initializing the ZegoSuperboard SDK, calling [loginRoom] to log in to the room, when you need to create a pure whiteboard.

createFileView:config:complete:

createFileView:config:complete:
- (void)createFileView:(nonnull ZegoCreateFileConfig *) config complete:(ZegoSuperBoardManagerCreateBlock) complete;
Create a file

Parameters

NameTypeDescription
confignonnull ZegoCreateFileConfig *The configuration parameters required to create the file
completeZegoSuperBoardManagerCreateBlockCreate the result callback for the file

Details

After the creation is successful, the corresponding SubView will be saved internally and its subViewModel data will be returned.

When to Call: Initialize the ZegoSuperboard SDK and call [loginRoom] to login to the room when the file needs to be created.

destroySuperBoardSubView:uniqueID:complete:

destroySuperBoardSubView:uniqueID:complete:
- (void)destroySuperBoardSubView:(NSString *) uniqueID complete:(ZegoSuperBoardManagerBlock) complete;
Destroys the specified SuperBoardSubView view

Parameters

NameTypeDescription
uniqueIDNSString *Unique identifier of the ZegoSuperBoardSubView object
completeZegoSuperBoardManagerBlockDestroys the result callback for the specified SuperBoardSubView

Details

Available Since: v2.0.0

When to call

the call querySuperBoardSubViewList pull to list or superBoardSubViewModelList get called when the model number greater than zero.

querySuperBoardSubViewList:complete:

querySuperBoardSubViewList:complete:
- (void)querySuperBoardSubViewList:(void(^)(ZegoSuperBoardError errorCode,NSArray <ZegoSuperBoardSubViewModel *>*superBoardViewList)) complete;
Query the server for the list of SuperBoardSubView that currently exists

Parameters

NameTypeDescription
completevoid(^)(ZegoSuperBoardError errorCode,NSArray <ZegoSuperBoardSubViewModel *>*superBoardViewList)Gets the resulting callback for the SuperBoardSubView list

Details

Pull down the whiteboard in the current room at one time, SDK internal will be associated with the file in the whiteboard file also loaded down, these whiteboard and file SDK internal processing mapping added to the ZegoSuperBoardSubView, external only need to use ZegoSuperBoardView.

When to call

the SDK and call it after logging in to the room.

  • Available since: v2.0.0

getSuperBoardSubView:uniqueID:

getSuperBoardSubView:uniqueID:
- (ZegoSuperBoardSubView *)getSuperBoardSubView:(NSString *) uniqueID;
Gets the specified SuperBoardSubView

Parameters

NameTypeDescription
uniqueIDNSString *Unique identifier of the ZegoSuperBoardSubView object
  • When to call: Initialize the SDK, enter the room successfully, get the SuperBoardSubView list after the call.

Limited to scenarios where SuperBoardView is not used (set by enableSuperBoardView

  • Available since: v2.0.0

clearCache

clearCache
- (void)clearCache;
Clear cache resources related to files and whiteboards
  • Available since: v2.0.0

Calling time: Initialization, after entering the room, the SDK needs to call it actively before exiting the room to clean up the resources in the room.

clear

clear
- (void)clear;
Empty resources in the room called upon checkout

When checking out, you need to clear the cache information in the room and stop media playback.

  • When to call: You need to call it before you check out.
  • Available since: v2.0.0

unInit

unInit
- (void)unInit;
Uninitialize the SDK
  • When to call: When you need to reinitialize the SDK, you must first call unInit.
  • Available since: v2.0.0

getSDKVersion

getSDKVersion
- (NSString *)getSDKVersion;
Obtain the SDK version number

Obtain the SDK version number.

  • Use cases:
  1. When the SDK is running, if the developer finds the discrepancy with the expected situation, the developer can submit the problem and related logs to the ZEGO technical personnel for locating the problem. The ZEGO technical personnel may need the SDK version information to assist locating the problem.
  2. Developers can also collect this information as the VERSION information of the SDK used by the App, so as to make statistics of the SDK corresponding to each version of the App online.
  • When to call: It can be called at any time.
  • Available since: v2.0.0

Version number of the SDK

getCustomizedConfig:key:

getCustomizedConfig:key:
- (NSString *)getCustomizedConfig:(nonnull NSString *) key;
Get the value of the set configuration item

Parameters

NameTypeDescription
keynonnull NSString *

Details

Get the value of the set configuration item.

  • When to call: After initializing the Superboard SDK, after calling setCustomizedConfig.
  • Available since: 2.0.0

ZegoSuperBoardManager

Details

Interface class, SDK initialization, global function Settings in the room, create files or pure whiteboard, etc.

  • Use cases: It is used to initialize the SDK, set some whiteboard tools, zoom synchronization, and brush effects, obtain boardView, and create pure whiteboard and files when the boardView mode is enabled.
  • Platform differences: There is no

Declared in ZegoSuperBoardManager.h

Properties

toolType

toolType
nonatomic,assign,readwrite ZegoSuperBoardTool toolType

Different tool types can be set to draw different primitives on the whiteboard.

Calling time: After initializing the ZegSuperBoard SDK.

  • Available since: v2.0.0

brushColor

brushColor
nonatomic,strong, readwrite UIColor * brushColor

After selecting the brush tool type and setting brushColor, the new paint color on the whiteboard takes effect.

When to call

ZegSuperBoard SDK is initialized.

  • Caution: Only the new graffiti after setting the pen color will take effect. If the graffiti already exists on the whiteboard before, it will not be changed to the color.
  • Available since: v2.0.0

brushSize

brushSize
nonatomic,assign, readwrite NSUInteger brushSize

Select the brush tool type, set brushSize value, and the new graffiti thickness on the whiteboard is the set value.

When to call

ZegSuperBoard SDK is initialized.

  • Caution: The newly added graffiti after only setting the brush thickness has a new thickness effect. The graffiti on the whiteboard will not be changed to the thickness.
  • Available since: v2.0.0

fontSize

fontSize
nonatomic,assign, readwrite NSUInteger fontSize

Select the type of text tool, set fontSize, the new text on the whiteboard is the size after setting.

  • Value range: an integer greater than 0

When to call

ZegSuperBoard SDK is initialized.

  • Caution: Only the new text after calling setFontSize will take effect. For example, the existing text on the whiteboard will not be changed to the font size.
  • Available since: v2.0.0

isFontBold

isFontBold
nonatomic,assign, readwrite BOOL isFontBold

After selecting the type of text tool, calling setFontBold and setting it to YES, the newly added text on the whiteboard is all bold.

When to call

ZegSuperBoard SDK is initialized.

  • Caution: Only the newly-added text after setting the text bold will have the bold effect. For example, the existing text on the whiteboard will not be changed to the bold effect.
  • Available since: 2.0.0

isFontItalic

isFontItalic
nonatomic, assign, readwrite BOOL isFontItalic

When the currently used tool type is text, call isFontItalic to get whether to set the italic effect

When to call

ZegSuperBoard SDK is initialized.

  • Available since: v2.0.0

customText

customText
nonatomic, copy, readwrite NSString * customText

Users can customize the default text of the text tools.

  • Available since: v2.0.0

enableSyncScale

enableSyncScale
nonatomic, assign, readwrite BOOL enableSyncScale

After enabling, you can send out the zoom of the local end. Whether the peer end wants to accept it, you need to enable the peer end to accept the zoom.

  • Use cases: Synchronize the zooming of the whiteboard on the operating end and the receiving end.
  • When to call: After ZegSuperboard SDK is initialized.
  • Caution: To achieve dual-ended zoom synchronization, you need to set enableSyncScale and enableResponseScale at the same time
  • Related callbacks: scaling changes occur on the peer end, and the receiving end can monitor the changed parameters through remoteSuperBoardScaleChanged.
  • Available since: v2.0.0

enableResponseScale

enableResponseScale
nonatomic, assign, readwrite BOOL enableResponseScale

After it is turned on, it can respond to the zooming of other members in the room, provided that the peer end synchronizes the zooming to other members in the room.

  • Use cases: Synchronize the zooming of the whiteboard on the operating end and the receiving end.
  • When to call: After ZegSuperboard SDK is initialized.
  • Caution: To achieve dual-ended zoom synchronization, you need to set enableSyncScale and enableResponseScale at the same time
  • Related callbacks: scaling changes occur on the peer end, and the receiving end can monitor the changed parameters through remoteSuperBoardScaleChanged.
  • Available since: v2.0.0

enableHandwriting

enableHandwriting
nonatomic, assign, readwrite BOOL enableHandwriting

Set whether the whiteboard graffiti has a pen sharp effect. If set to true, the graffiti will have a pen sharp effect.

  • Use cases: Adjust the thickness and shape of the strokes according to the speed of the graffiti drawing process to enhance the writing experience.
  • When to call: Initialize the SDK, after rendering the whiteboard.
  • Available since: v2.0.0

delegate

delegate
nonatomic, weak id<ZegoSuperBoardManagerDelegate> delegate

Set the agent of ZegoSuperBoardManager, you can implement the corresponding agent method to monitor the SDK superBoardSubView to add, destroy, switch, SDK exception, etc.

  • Use cases: You need to update the superBoardSubView by adding, destroying, and switching.
  • Available since: v2.0.0

superBoardView

superBoardView
nonatomic, strong,readonly ZegoSuperBoardView * superBoardView

Open the SuperBoardView mode to get the object.

  • Use cases: SuperBoardView mode is turned on, use the method on the object to switch the whiteboard on the A side, and the B side will automatically synchronize.
  • Default value: Get the object by default

When to call

initializing ZegoSuperboard SDK.

  • Caution: If you use the enableSuperBoardView interface and set it to false, you cannot get the SuperBoardView object.
  • Available since: v2.0.0

superBoardSubViewModelList

superBoardSubViewModelList
nonatomic, strong,readonly NSArray <ZegoSuperBoardSubViewModel *> * superBoardSubViewModelList

Through superBoardSubViewModelList, access to the current existing superBoardSubView room number and superBoardSubView information.

  • Use cases: After entering the room, you need to obtain the superBoardSubView list in the room for display, and switch the current superBoardSubView in the list.

When to call

initializing ZegoSuperboard SDK.

  • Available since: v2.0.0

enableCustomCursor

enableCustomCursor
nonatomic, assign, readwrite BOOL enableCustomCursor

Detailed description: Set whether to enable custom cursor, set to true to display the cursor. The default is true

Business scenario: the cursor function is displayed during the graffiti process.

Timing of calling: After initializing the SDK.

Supported version: v2.2.0

enableRemoteCursorVisible

enableRemoteCursorVisible
nonatomic, assign, readwrite BOOL enableRemoteCursorVisible

Detailed description: Set whether to display the remote cursor or not, set to true to display the remote cursor. The default is true.

Business scenario: display the remote cursor function during the graffiti process.

Timing of calling: After initializing the SDK.

Supported version: v2.2.0

superBoardMaxScaleFactor

superBoardMaxScaleFactor
nonatomic, assign, readwrite CGFloat superBoardMaxScaleFactor

Method description: Set the maximum zoom factor of Super Whiteboard (file and whiteboard), which is 3x by default. The range that can be set is [1,10] Call timing: After initialization, before creating the file/whiteboard, and after unInit expires.

Methods

sharedInstance

static
sharedInstance
+ (ZegoSuperBoardManager *)sharedInstance;
Get ZegoSuperBoardManager instance object
Declared in ZegoSuperBoardManager.h
  • When to call /Trigger: After integrating ZegoSuperBoard SDK, before initializing ZegoSuperBoard SDK.
  • Available since: v2.0.0

Detailed description: Get the ZegoSuperBoardManager instance object to call the interface method in ZegoSuperBoardManager.

ZegoSuperBoardManager instance object

setSuperBoardMaxScaleFactor:scaleFactor:

setSuperBoardMaxScaleFactor:scaleFactor:
- (void)setSuperBoardMaxScaleFactor:(Float) scaleFactor;
Set the maximum zoom factor of Super Whiteboard (file and whiteboard), which is 3x by default. The range that can be set is [1,10]
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
scaleFactorFloatDescription
maximum zoom factor of Super Whiteboard (file and whiteboard)

Details

Set the maximum zoom factor of Super Whiteboard (file and whiteboard), which is 3x by default. The range that can be set is [1,10]

  • When to call /Trigger: After initialization, before creating the file/whiteboard, and after unInit expires.
  • Available since: 2.3.7

renewToken:token:

renewToken:token:
- (void)renewToken:(NSString *) token;
update token
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
tokenNSString *A token to be updated.
  • Default value: None

Call time: after initializing the SDK, with the help of the upcoming expiration callback [tokenwillexpire] interface of zego SDK, receive the upcoming expiration callback of the token, and actively update the file service token of the super whiteboard.

Scope of influence: the expiration time contained in the token will trigger the [tokenwillexpire] callback 30s before expiration

Related callback: [tokenwillexpire]

Related interfaces: None

  • Platform differences: None

setManagerListener:listener:

setManagerListener:listener:
- (void)setManagerListener:(ZegoSuperBoardManagerDelegate) listener;
set callback for SDK
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
listenerZegoSuperBoardManagerDelegateMonitor whiteboard callback information
  • When to call /Trigger: after init
  • Available since: v2.0.0

initWithConfig:config:complete:

initWithConfig:config:complete:
- (void)initWithConfig:(ZegoSuperBoardInitConfig *) config complete:(ZegoSuperBoardManagerBlock) complete;
Initialize the ZegoSuperBoard SDK
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
configZegoSuperBoardInitConfig *Configuration information required for SDK initialization
completeZegoSuperBoardManagerBlockInitialization result callback

Details

Method to initialize the ZegoSuperBoard SDK.

  • Use cases: Initialize the ZegoSuperBoard SDK.
  • When to call: Before calling the ZegoExpressEngine SDK's loginRoom interface
  • Related APIs: unInit.
  • Available since: v2.0.0

setCustomizedConfig:value:key:

setCustomizedConfig:value:key:
- (void)setCustomizedConfig:(nonnull NSString *) value key:(nonnull NSString *) key;
Setting initialization parameters is optional<br/>For example:<br/>The key value is logPath, which is the directory where the SDK records logs.<br/>The key value is cachePath, the address of the directory cached by the SDK.
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
valuenonnull NSString *value description
keynonnull NSString *key description
  • When to call: Called after initializing the Superboard SDK
  • Available since: v2.0.0

Return

Whether the setting is successful

enableSuperBoardView:enable:

enableSuperBoardView:enable:
- (void)enableSuperBoardView:(BOOL) enable;
Set whether to use SuperBoardView
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
enableBOOLYES: SuperBoardView is used. NO: SuperBoardView is not used,The default is YES

Details

Set whether to use SuperBoardView.

When to call : Before initializing the SDK.

Open by default

  • Available since: v2.0.0

createWhiteboardView:config:complete:

createWhiteboardView:config:complete:
- (void)createWhiteboardView:(nonnull ZegoCreateWhiteboardConfig *) config complete:(ZegoSuperBoardManagerCreateBlock) complete;
Creating a pure whiteboard
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
confignonnull ZegoCreateWhiteboardConfig *Pure Whiteboard configuration parameters
completeZegoSuperBoardManagerCreateBlockCreates a result callback for a pure whiteboard

Details

After the creation is successful, the corresponding SubView will be saved internally and its subViewModel data will be returned.

  • When to call: After initializing the ZegoSuperboard SDK, calling [loginRoom] to log in to the room, when you need to create a pure whiteboard.

createFileView:config:complete:

createFileView:config:complete:
- (void)createFileView:(nonnull ZegoCreateFileConfig *) config complete:(ZegoSuperBoardManagerCreateBlock) complete;
Create a file
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
confignonnull ZegoCreateFileConfig *The configuration parameters required to create the file
completeZegoSuperBoardManagerCreateBlockCreate the result callback for the file

Details

After the creation is successful, the corresponding SubView will be saved internally and its subViewModel data will be returned.

When to Call: Initialize the ZegoSuperboard SDK and call [loginRoom] to login to the room when the file needs to be created.

destroySuperBoardSubView:uniqueID:complete:

destroySuperBoardSubView:uniqueID:complete:
- (void)destroySuperBoardSubView:(NSString *) uniqueID complete:(ZegoSuperBoardManagerBlock) complete;
Destroys the specified SuperBoardSubView view
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
uniqueIDNSString *Unique identifier of the ZegoSuperBoardSubView object
completeZegoSuperBoardManagerBlockDestroys the result callback for the specified SuperBoardSubView

Details

Available Since: v2.0.0

When to call

the call querySuperBoardSubViewList pull to list or superBoardSubViewModelList get called when the model number greater than zero.

querySuperBoardSubViewList:complete:

querySuperBoardSubViewList:complete:
- (void)querySuperBoardSubViewList:(void(^)(ZegoSuperBoardError errorCode,NSArray <ZegoSuperBoardSubViewModel *>*superBoardViewList)) complete;
Query the server for the list of SuperBoardSubView that currently exists
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
completevoid(^)(ZegoSuperBoardError errorCode,NSArray <ZegoSuperBoardSubViewModel *>*superBoardViewList)Gets the resulting callback for the SuperBoardSubView list

Details

Pull down the whiteboard in the current room at one time, SDK internal will be associated with the file in the whiteboard file also loaded down, these whiteboard and file SDK internal processing mapping added to the ZegoSuperBoardSubView, external only need to use ZegoSuperBoardView.

When to call

the SDK and call it after logging in to the room.

  • Available since: v2.0.0

getSuperBoardSubView:uniqueID:

getSuperBoardSubView:uniqueID:
- (ZegoSuperBoardSubView *)getSuperBoardSubView:(NSString *) uniqueID;
Gets the specified SuperBoardSubView
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
uniqueIDNSString *Unique identifier of the ZegoSuperBoardSubView object
  • When to call: Initialize the SDK, enter the room successfully, get the SuperBoardSubView list after the call.

Limited to scenarios where SuperBoardView is not used (set by enableSuperBoardView

  • Available since: v2.0.0

clearCache

clearCache
- (void)clearCache;
Clear cache resources related to files and whiteboards
Declared in ZegoSuperBoardManager.h
  • Available since: v2.0.0

Calling time: Initialization, after entering the room, the SDK needs to call it actively before exiting the room to clean up the resources in the room.

clear

clear
- (void)clear;
Empty resources in the room called upon checkout
Declared in ZegoSuperBoardManager.h

When checking out, you need to clear the cache information in the room and stop media playback.

  • When to call: You need to call it before you check out.
  • Available since: v2.0.0

unInit

unInit
- (void)unInit;
Uninitialize the SDK
Declared in ZegoSuperBoardManager.h
  • When to call: When you need to reinitialize the SDK, you must first call unInit.
  • Available since: v2.0.0

getSDKVersion

getSDKVersion
- (NSString *)getSDKVersion;
Obtain the SDK version number
Declared in ZegoSuperBoardManager.h

Obtain the SDK version number.

  • Use cases:
  1. When the SDK is running, if the developer finds the discrepancy with the expected situation, the developer can submit the problem and related logs to the ZEGO technical personnel for locating the problem. The ZEGO technical personnel may need the SDK version information to assist locating the problem.
  2. Developers can also collect this information as the VERSION information of the SDK used by the App, so as to make statistics of the SDK corresponding to each version of the App online.
  • When to call: It can be called at any time.
  • Available since: v2.0.0

Version number of the SDK

getCustomizedConfig:key:

getCustomizedConfig:key:
- (NSString *)getCustomizedConfig:(nonnull NSString *) key;
Get the value of the set configuration item
Declared in ZegoSuperBoardManager.h

Parameters

NameTypeDescription
keynonnull NSString *

Details

Get the value of the set configuration item.

  • When to call: After initializing the Superboard SDK, after calling setCustomizedConfig.
  • Available since: 2.0.0

ZegoSuperBoardSubView

Details

Interface class used to describe a pure whiteboard or file whiteboard.

  • Use cases: The whiteboard is used to operate and set the status and operation of the whiteboard.
  • Caution: You need to log in room first. Check whether it is empty before using it.

Declared in ZegoSuperBoardSubView.h

Properties

model

model
nonatomic,strong,readonly ZegoSuperBoardSubViewModel * model

Get model data corresponding to ZegoSuperBoardSubView

  • Use cases: Get ZegoSuperBoardSubView model data, such as ID, name, associated file ID, etc.
  • Available since: 2.0.0 and above.

pageCount

pageCount
nonatomic,assign,readonly NSInteger pageCount

Get the page number of the currently displayed content

  • Available since: 2.0.0 and above.

excelSheetNameList

excelSheetNameList
nonatomic,strong,readonly NSArray <NSString *>* excelSheetNameList

Get the names of all sheet tables in this excel file.

  • Use cases: When you need to display the sheet table of the excel file, use this method to get the names of all the sheet tables of the excel file.
  • Caution: Return nil for non-excel file types.
  • Available since: v2.0.0

currentSheetName

currentSheetName
nonatomic,copy,readonly NSString * currentSheetName

Get the name of the currently displayed sheet, if it is not excel, return nil.

  • Available since: v2.0.0.

visibleSize

visibleSize
nonatomic,assign,readonly CGSize visibleSize

SuperBoardSubView Size of visible content area

  • Available since: v2.0.0

delegate

delegate
nonatomic,weak id<ZegoSuperBoardSubViewDelegate> delegate

Set event notification callbacks, and pass nil to clear the set callbacks.

  • Available since: v2.0.0

currentPage

currentPage
nonatomic,assign,readonly NSInteger currentPage

Gets the page number of the currently displayed content.

  • Available since: 2.0.0 and above.

Methods

setCustomCursorAttribute:type:cursorAttribute:complete:

setCustomCursorAttribute:type:cursorAttribute:complete:
- (void)setCustomCursorAttribute:(ZegoSuperBoardViewCursorType) type cursorAttribute:(ZegoSuperBoardCursorAttribute *) cursorAttribute complete:(void(^)(int errorCode)) complete;
Customize the local custom cursor
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
typeZegoSuperBoardViewCursorTypeSet the tool type, currently only supports setting the brush style
cursorAttributeZegoSuperBoardCursorAttribute *cursor attribute
completevoid(^)(int errorCode)callback

Details

Supported version: 2.2.0 and above.

Detailed description: Set the pointer icon of the local custom cursor and the hot spot of the pointer (that is, the actual click position of the custom icon)

Required or not: Yes.

To set the hot spot of the pointer, two unitless non-negative numbers less than 32 are recommended.

Calling time: after opening the local custom cursor.

getThumbnailUrlList

getThumbnailUrlList
- (NSArray *)getThumbnailUrlList;
Get the current file thumbnail list, only supports PDF, PPT, dynamic PPT, H5 file format
Declared in ZegoSuperBoardSubView.h

If you need to display the preview screen of the file, you can get the corresponding preview image through this interface, and then click the preview image to turn the page

  • Use cases: Display the preview screen of each page of the document
  • When to call /Trigger: Called after the file is loaded, otherwise it returns an empty list.
  • Available since: v2.0.0
  • Restrictions: Only support PDF, PPT, dynamic PPT, H5 file format, other types return an empty list.

List of URL addresses of thumbnails of each page of the file

getPPTNotes:page:

getPPTNotes:page:
- (NSString *)getPPTNotes:(NSInteger) page;
Get the notes of the specified page number of the PPT
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
pageNSIntegerThe specified page number, starting from 1

Details

Get the notes of the specified page number of the PPT.

  • Use cases: Get the notes of the specified page number of the PPT.
  • When to call: After the loadFile succeeds.
  • Available since: v2.0.0
  • Restrictions: Only support PPT, dynamic PPT file format, other types returns null.

Return

Notes on this page, if there are no notes, null will be returned

addTextEditWithComplete:complete:

addTextEditWithComplete:complete:
- (void)addTextEditWithComplete:(nullable ZegoSuperBoardSubViewBlock) complete;
Add text to the whiteboard View, and an input box will pop up from the bottom of the whiteboard after calling.
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
completenullable ZegoSuperBoardSubViewBlockOperation result callback, if you have the permission to create primitives, it will succeed, otherwise it will fail

Details

Add text to the whiteboard View, and an input box will pop up from the bottom of the whiteboard after calling.

  • Use cases: Add text to the whiteboard View, and an input box will pop up from the bottom of the whiteboard after calling.
  • Default value: The default content of the input box is "text". You can set the default text using the ZegoSuperBoardManager property customText. The default display position is in the middle of the current whiteboard range
  • Related callbacks: ZegoSuperBoardSubViewBlock
  • Related APIs: ZegoSuperBoardManager property customText.
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0

addText:text:positionX:positionY:complete:

addText:text:positionX:positionY:complete:
- (void)addText:(NSString *) text positionX:(int) positionX positionY:(int) positionY complete:(ZegoSuperBoardSubViewBlock) complete;
Add custom text to the whiteboard
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
textNSString *The string content of the text primitive to be added
positionXintThe horizontal offset relative to the upper left corner of the viewport, such as 10, where the viewport refers to the writable area
positionYintThe vertical offset relative to the upper left corner of the viewport, such as 10, where the viewport refers to the writable area
completeZegoSuperBoardSubViewBlockOperation result callback, if you have the permission to create primitives, it will succeed, otherwise it will fail

Details

Add text in the whiteboard view, you can specify the location of the addition, and the keyboard input box will not pop up.

  • Use cases: Adding text at the specified position of the whiteboard view will create a new text primitive.
  • Related callbacks: ZegoSuperBoardSubViewBlock.
  • When to call: his is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0.

undo

undo
- (void)undo;
Undo the last operation of the whiteboard
Declared in ZegoSuperBoardSubView.h

Undo the last operation of the whiteboard.

  • Use cases: Whiteboard related operations.
  • Related APIs: redo.
  • When to call: when currentSuperBoardSubView exists.
  • Available since: v2.0.0.

redo

redo
- (void)redo;
Restore the undone operation on the whiteboard
Declared in ZegoSuperBoardSubView.h

Restore the undone operation on the whiteboard.

  • Use cases: Whiteboard related operations.
  • Related APIs: undo.
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0.

clearCurrentPage:complete:

clearCurrentPage:complete:
- (void)clearCurrentPage:(ZegoSuperBoardSubViewBlock) complete;
Clear the primitives on the current page of the whiteboard
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
completeZegoSuperBoardSubViewBlockOperation result callback. If deleting the primitives of the current page is successful, it will return success, otherwise it will fail

Details

Clear the primitives on the current page of the whiteboard.

  • Use cases: Whiteboard related operations.
  • Related APIs: clearAllPage.
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0

clearAllPage:complete:

clearAllPage:complete:
- (void)clearAllPage:(ZegoSuperBoardSubViewBlock) complete;
Clear the primitives on all page of the whiteboard
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
completeZegoSuperBoardSubViewBlockOperation result callback. If you have the permission to delete primitives, it will return success, otherwise it will fail

Details

Clear the primitives on all page of the whiteboard.

  • Use cases: Whiteboard related operations.
  • Related APIs: clearCurrentPage.
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0

setOperationMode:mode:

setOperationMode:mode:
- (void)setOperationMode:(ZegoSuperBoardOperationMode) mode;
Set the operating mode of the current whiteboard
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
modeZegoSuperBoardOperationModeoperation mode

Details

Set the operation mode of the current whiteboard, such as prohibiting the client's gesture operation on the whiteboard.Users can use bitwise or to set multiple modes at the same time. For example, when set to ZegoSuperBoardOperationModeZoom | ZegoSuperBoardOperationModeDraw, it can support both zoom mode and drawing mode.

  • Use cases: Normally, there is no need to call this method. When the toolType is set, the SDK will call this method to process the whiteboard. If you need to prohibit the client's gesture operation on the whiteboard, you can use this method to set it to None mode.
  • Default value: Draw/zoom mode.
  • Impacts on other APIs: When set to scroll mode, gestures will be recognized as scrolling, and when set to drawing mode, gestures will be recognized as drawing-related operations at this time.
  • Caution: It can be called only when the currentSuperBoardSubView exists. You can use the getCurrentSuperBoardSubView() method to determine whether the currentSuperBoardSubView exists, otherwise it will not have any effect.
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0

flipToPage:targetPage:complete:

flipToPage:targetPage:complete:
- (void)flipToPage:(NSInteger) targetPage complete:(ZegoSuperBoardSubViewBlock) complete;
Jump to the specified page
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
targetPageNSIntegerThe page number of the target page, starting from 1
completeZegoSuperBoardSubViewBlockOperation result callback

Details

Jump to the specified page .

  • Use cases: Specify a page number to jump.
  • Caution: If it is a dynamic ppt or H5 file, the jump page may need to download pictures and animation resources, so frequent calls may cause it to take a long time to complete.
  • Related callbacks: ZegoSuperBoardSubViewBlock.
  • Related APIs: flipToPrePage,flipToNextPage
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0

flipToPrePage:complete:

flipToPrePage:complete:
- (void)flipToPrePage:(ZegoSuperBoardSubViewBlock) complete;
Jump to the previous page
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
completeZegoSuperBoardSubViewBlockOperation result callback

Details

Jump to the previous page.

  • Caution: If it is a dynamic ppt or H5 file, the jump page may need to download pictures and animation resources, so frequent calls may cause it to take a long time to complete.
  • Related callbacks: ZegoSuperBoardSubViewBlock.
  • Related APIs: flipToPage,flipToNextPage
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0

flipToNextPage:complete:

flipToNextPage:complete:
- (void)flipToNextPage:(ZegoSuperBoardSubViewBlock) complete;
Jump to the next page
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
completeZegoSuperBoardSubViewBlockOperation result callback

Details

Jump to the next page.

  • Caution: If it is a dynamic ppt or H5 file, the jump page may need to download pictures and animation resources, so frequent calls may cause it to take a long time to complete.
  • Related callbacks: ZegoSuperBoardSubViewBlock.
  • Related APIs: flipToPage,flipToPrePage
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0

preStep:complete:

preStep:complete:
- (void)preStep:(ZegoSuperBoardSubViewBlock) complete;
Jump to the previous step animation
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
completeZegoSuperBoardSubViewBlockOperation result callback

Details

Jump to the previous step animation

  • Caution: Only for dynamic ppt or H5 files, otherwise it will not have any effect.
  • Related callbacks: ZegoSuperBoardSubViewBlock.
  • Related APIs: nextStep.
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0.

nextStep:complete:

nextStep:complete:
- (void)nextStep:(ZegoSuperBoardSubViewBlock) complete;
Jump to the next step animation
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
completeZegoSuperBoardSubViewBlockOperation result callback

Details

Jump to the next step animation

  • Caution: Only for dynamic ppt or H5 files, otherwise it will not have any effect.
  • Related callbacks: ZegoSuperBoardSubViewBlock.
  • Related APIs: preStep.
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0.

switchExcelSheet:sheetIndex:complete:

switchExcelSheet:sheetIndex:complete:
- (void)switchExcelSheet:(NSInteger) sheetIndex complete:(ZegoSuperBoardSubViewSwitchBlock) complete;
Switch the excel file to the specified sheet page
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
sheetIndexNSIntegerThe index of the target sheet of the excel file
completeZegoSuperBoardSubViewSwitchBlockOperation result callback

Details

Switch the excel file to the specified sheet page.

  • Use cases: When opening an excel file, the default is the 0th sheet page.
  • Related callbacks: ZegoSuperBoardSubViewSwitchBlock.
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0.

addImage:type :address:positionX:positionY:complete:

addImage:type :address:positionX:positionY:complete:
- (void)addImage:(ZegoSuperBoardViewImageType) type address:(NSString *) address positionX:(int) positionX positionY:(int) positionY complete:(ZegoSuperBoardSubViewBlock) complete;
Insert picture to whiteboard
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
typeZegoSuperBoardViewImageTypePicture type, currently supports normal pictures and custom graphics
addressNSString *Picture address, supports local picture address and network picture address, local picture will be uploaded to CDN storage first. Currently, custom graphics only support network picture addresses. (Only https is supported for network pictures) Example: "xxxxxxxxxx.png", "".
positionXintThe starting point of the image insertion position, relative to the horizontal offset of the upper left corner of the viewport, such as 10, where the viewport refers to the writable area. Just pass 0 to the custom graphics directly.
positionYintThe starting point of the image insertion position, relative to the vertical offset of the upper left corner of the viewport, such as 10, where the viewport refers to the writable area. Just pass 0 to the custom graphics directly.
completeZegoSuperBoardSubViewBlockAdd picture result callback

Details

Insert pictures into the whiteboard, directly insert into the whiteboard display or set custom graphics.

  • Use cases: After setting the custom graphics, when the whiteboard tool is selected as the custom graphics, touching the whiteboard will draw the custom graphics passed in here.
  • Caution: Supported image types: png/jpg/jpeg, when the type is ZegoWhiteboardViewImageGraphic, it supports local images and network images, and the image size limit is 10M. When the type is ZegoWhiteboardViewImageCustom, only network images are supported, and the image size limit is 500KB.
  • Related callbacks: ZegoSuperBoardSubViewBlock.
  • When to call: this is called when currentSuperBoardSubView exists.
  • Available since: v2.0.0 .

clearSelected:complete:

clearSelected:complete:
- (void)clearSelected:(ZegoSuperBoardSubViewBlock) complete;
Delete the selected element
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
completeZegoSuperBoardSubViewBlockOperation result callback

Details

Select some primitives through the selection tool of the whiteboard, and call this method to delete the selected primitives.

  • Related callbacks: ZegoSuperBoardSubViewBlock
  • When to call: After getting the SuperBoardSubView list.
  • Available since: v2.0.0.

setBackgroundImageWithPath:imagePath:mode:complete:

setBackgroundImageWithPath:imagePath:mode:complete:
- (void)setBackgroundImageWithPath:(NSString *) imagePath mode:(ZegoSuperBoardViewImageFitMode) mode complete:(ZegoSuperBoardSubViewBlock) complete;
Set the background image to the whiteboard
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
imagePathNSString *The background image path, local path or network path can be used (network image only supports https). Example: "xxxxxxxxxx.png", "".
modeZegoSuperBoardViewImageFitModeBackground image fill mode
completeZegoSuperBoardSubViewBlockCallback when the background image is set

Details

Set a background image to the whiteboard, support local path or network path, this background image will be synchronized to other users in the room.

  • Related callbacks: ZegoSuperBoardSubViewBlock.
  • When to call: After Get the SuperBoardSubView list.
  • Available since: v2.0.0.

clearBackgroundImageWithComplete:complete:

clearBackgroundImageWithComplete:complete:
- (void)clearBackgroundImageWithComplete:(ZegoSuperBoardSubViewBlock) complete;
Clear the background image of the whiteboard
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
completeZegoSuperBoardSubViewBlockClear background completion callback

Details

Clear the background image of the whiteboard, this action will be synchronized to other users in the room.

  • Related callbacks: ZegoSuperBoardSubViewBlock.
  • When to call: Get the SuperBoardSubView list.
  • Available since: v2.0.0.

stopPlayPPTVideo

stopPlayPPTVideo
- (void)stopPlayPPTVideo;
Stop the video being played on the current dynamic ppt page
Declared in ZegoSuperBoardSubView.h

Stop the video currently being played on the dynamic ppt page, generally used to stop the audio and video playback of the dynamic PPT file when switching files.

  • When to call: Called during audio and video playback after the file has been successfully loaded.
  • Available since: v2.0.0.

setWhiteboardBackgroundColor:color:

setWhiteboardBackgroundColor:color:
- (void)setWhiteboardBackgroundColor:(UIColor *) color;
Set the whiteboard background color in the container
Declared in ZegoSuperBoardSubView.h

Parameters

NameTypeDescription
colorUIColor *White Board Color

Details

Set the background color of the whiteboard, for example, set the pure whiteboard to gray. It only takes effect locally and will not be synchronized to other users.

  • When to call: Can be called directly when the SuperBoardSubView object is obtained
  • Available since: v2.0.0

ZegoSuperBoardSubViewModel

Details

Data model class that contains the name of the ZegoSuperBoardSubView that was created, the time it was created, the ID of the contained file, the type of the file, and the unique identifier of the ZegoSuperBoardSubView object.

  • Use cases: :The user obtains the ID, name and file information of the corresponding ZegoSuperBoardSubView object.

Declared in ZegoSuperBoardSubViewModel.h

Properties

name

name
nonatomic, copy NSString * name

Name of SuperBoardSubView

createTime

createTime
nonatomic,assign NSUInteger createTime

Whiteboard Creation Time Unix timestamp (milliseconds)

fileID

fileID
nonatomic,copy NSString * fileID

File ID, which is unique

fileType

fileType
nonatomic,assign NSUInteger fileType

File type, refer to ZegoSuperBoardFileType

uniqueID

uniqueID
nonatomic,copy NSString * uniqueID

SuperBoardSubview ID, This ID is unique.

whiteboardIDList

whiteboardIDList
nonatomic,strong NSArray * whiteboardIDList

A list of whiteboard IDs

ZegoSuperBoardView

Details

This class mainly realizes the function of switching SuperBoardSubView and Excel file sheet in SuperBoardSubView. After initializing SDK, You can get the ZegoSuperBoardView object directly using the ZegoSuperBoardManager, through the outside of the class does not need to deal with the ZegoSuperBoardView switching and synchronization logic, ZegoSuperBoardView handles the logic for switching synchronised presentations internally.

  • Use cases: Simplify the complexity of accessing the SDK and don't want to deal with too much switching ZegoSuperBoardView logic.
  • Caution: To use ZegoSuperBoardView, you need to turn on enableSuperBoardView. The default is on.

Declared in ZegoSuperBoardView.h

Properties

currentSuperBoardSubView

currentSuperBoardSubView
nonatomic,strong,readonly ZegoSuperBoardSubView * currentSuperBoardSubView

The SuperBoardSubView that should currently be displayed at the top of the view

delegate

delegate
nonatomic,weak id<ZegoSuperBoardViewDelegate> delegate

Agent to ZegoSuperBoardView

Methods

switchSuperBoardSubView:uniqueID:complete:

switchSuperBoardSubView:uniqueID:complete:
- (void)switchSuperBoardSubView:(NSString *) uniqueID complete:(ZegoSuperBoardSwitchBlock) complete;
Switch to the specified SuperBoardSubView
Declared in ZegoSuperBoardView.h

Parameters

NameTypeDescription
uniqueIDNSString *Unique IDENTIFIER of the SuperBoardSubView
completeZegoSuperBoardSwitchBlockToggle the result callback of SuperBoardSubView

Details

Supported version: 2.0.0 and above.

Detailed description: switch to the specified SubView, multi-terminal synchronization.

Related callback: ZegoSuperBoardSwitchBlock.

switcSuperBoardSubView:uniqueID:sheetIndex:complete:

switcSuperBoardSubView:uniqueID:sheetIndex:complete:
- (void)switcSuperBoardSubView:(NSString *) uniqueID sheetIndex:(int) sheetIndex complete:(ZegoSuperBoardSwitchBlock) complete;
Toggles the specified SuperBoardSubView to the specified sheet
Declared in ZegoSuperBoardView.h

Parameters

NameTypeDescription
uniqueIDNSString *Unique IDENTIFIER of the SuperBoardSubView
sheetIndexintExcel sheetIndex
completeZegoSuperBoardSwitchBlockResult callback switching Excel

Details

Switches Excel from the specified SuperBoardSubView to the specified sheet.

  • Use cases: Switch to Excel Sheet.

When to call

after the file is loaded.

Use restrictions: Only Excel files are supported.

  • Available since: v2.0.0

Return

Operation result

ZegoUploadCustomH5Config

Details

Custom H5 courseware property construction class can set the width, height, page number and thumbnail information of custom courseware.

  • Use cases: It needs to be passed in the interface of uploading custom H5 courseware.

Declared in ZegoUploadCustomH5Config.h

Properties

width

width
nonatomic, assign CGFloat width

Customize the width of H5 courseware

Required or not: Mandatory

  • Value range: Greater than 0
  • Available since: v2.0.0

height

height
nonatomic, assign CGFloat height

Customize the height of H5 courseware.

Required or not: Mandatory

  • Value range: Greater than 0
  • Available since: v2.0.0

pageCount

pageCount
nonatomic, assign NSInteger pageCount

Customize the number of pages of H5 courseware.

  • Available since: v2.0.0

thumbnailList

thumbnailList
nonatomic, strong NSArray<NSString *> * thumbnailList

Customize H5 courseware thumbnail relative path array.

  • Required: optional parameters
  • Available since: v2.0.0

Previous

Function Overview

Next

Protocol