logo
Super Board
On this page

Interface

2026-01-23
loadOptionsuploadOptions
ZegoCursorAttributeZegoEvent
ZegoSuperBoardCacheFileCallBackZegoSuperBoardDynamicCacheModel
ZegoSuperBoardErrorDataZegoSuperBoardStaticCacheModel
ZegoSuperBoardUploadCallbackZegoSuperBoardUploadH5FileCallback
ZegoWhiteboardScaleModel~

ZegoCursorAttribute

Description: The custom cursor can be personalized.

Properties

iconPath

iconPath
iconPath: string | File

Cursor path, you can enter network pictures or upload icon files locally.

offsetX

offsetX
offsetX: number
  • Required: Yes

Example: If you want to set the mouse action point at the upper left corner of the icon, set the X axis to 0.

  • Value range: 0~32.

Platform difference: Please refer to https://developer.mozilla.org/zh-CN/docs/Web/CSS/cursor#specifications for the attribute platform difference.

offsetY

offsetY
offsetY: number
  • Required: Yes

Example: If you want to set the mouse action point at the upper left corner of the icon, set the Y axis to 0.

  • Value range: 0~32.

Platform difference: Please refer to https://developer.mozilla.org/zh-CN/docs/Web/CSS/cursor#specifications for the attribute platform difference.

titleStyle

titleStyle
titleStyle: ZegoSuperBoardCursorTitleStyle
  • Default value: Refer to ZegoCursorTitleStyle class Supported version: v2.13.0

ZegoEvent

ZegoSuperBoard SDK callback event collection

Properties

error

error

Monitor all error errors

remoteSuperBoardSubViewAdded

remoteSuperBoardSubViewAdded
remoteSuperBoardSubViewAdded: remoteSuperBoardSubViewAddedCallback

Listen to the peer to create a subView and return the uniqueID of the subView created by the peer

Notification timing: After the subView is successfully created, other users in the same room will receive the corresponding notification in the [remoteSuperBoardSubViewAdded] callback.

remoteSuperBoardSubViewRemoved

remoteSuperBoardSubViewRemoved
remoteSuperBoardSubViewRemoved: remoteSuperBoardSubViewRemovedCallback

The monitoring peer deletes the subView and returns the uniqueID of the deleted subView from the peer.

Notification timing: After creating and deleting the subView, other users in the same room will receive the corresponding notification in the [remoteSuperBoardSubViewRemoved] callback.

remoteSuperBoardSubViewSwitched

remoteSuperBoardSubViewSwitched
remoteSuperBoardSubViewSwitched: remoteSuperBoardSubViewSwitchedCallback

monitor the peer switch subView and return the uniqueID of the subView switched by the peer.

Notification timing: After the subView is successfully switched, other users in the same room will receive the corresponding notification in the [remoteSuperBoardSubViewSwitched] callback.

remoteSuperBoardAuthChanged

remoteSuperBoardAuthChanged
remoteSuperBoardAuthChanged: remoteSuperBoardAuthChangedCallback

monitor whiteboard permission changes

Notification timing: When the permission change occurs, users who are already in the same room will receive a corresponding notification in the [remoteSuperBoardAuthChanged] callback.

remoteSuperBoardGraphicAuthChanged

remoteSuperBoardGraphicAuthChanged
remoteSuperBoardGraphicAuthChanged: remoteSuperBoardGraphicAuthChangedCallback

Monitor the changes of primitive permissions, [create, erase, move, edit, clear] permission objects

Notification timing: When the permission change occurs, users who are already in the same room will receive a corresponding notification in the [remoteSuperBoardGraphicAuthChanged] callback.

superBoardSubViewScaleChanged

superBoardSubViewScaleChanged
superBoardSubViewScaleChanged: superBoardSubViewScaleChangedCallback

monitor the zooming subView, and return the uniqueID and zoom factor of the zoomed subView.

Notification timing: After the subView is successfully zoomed, users in the same room will receive the corresponding notification in the [superBoardSubViewScaleChanged] callback.

superBoardSubViewScrollChanged

superBoardSubViewScrollChanged
superBoardSubViewScrollChanged: superBoardSubViewScrollChangedCallback

Monitor the scrolling/page-turning subView, return the uniqueID of the scrolling/page-turning subView, the page number, and the number of steps of the dynamic PPT type file

Notification timing: After the subView is successfully scaled, users in the same room will receive the corresponding notification in the [superBoardSubViewScrollChanged] callback.

cacheFile

cacheFile
cacheFile: cacheFileCallback

Details: After calling the cacheFile interface, the status of the cache file process will be displayed through this callback. Business scenario: cache files locally. Callback time: after calling the cacheFile interface.

uploadFile

uploadFile
uploadFile: uploadFileCallback

Details: listen to file upload, return file upload status, error code, seq, upload progress, file ID information Notification timing: After the file is uploaded successfully, all users in the same room will receive the corresponding notification in the [uploadFile] callback.

uploadH5File

uploadH5File
uploadH5File: uploadH5FileCallback

Details: listen to H5 file upload, return file upload status, error code, seq, upload progress, file ID information Notification timing: After the file is uploaded successfully, all users in the same room will receive the corresponding notification in the [uploadH5File] callback.

superBoardSubViewMediaPermission

superBoardSubViewMediaPermission
superBoardSubViewMediaPermission: superBoardSubViewMediaPermissionCallback

The callback triggered when the passive end cannot play audio and video due to browser limitations is generally used in conjunction with PlayMedia to pass the information returned by the callback to PlayMedia.

Methods

cacheFileCallback

cacheFileCallback
cacheFileCallback(state: ZegoSuperBoardCacheFileState, errorCode: number, seq: number, percent: number, fileID: string): void
Preload static file progress callback

Parameters

NameTypeDescription
stateZegoSuperBoardCacheFileStateFile caching is divided into two stages: Caching and Cached.
errorCodenumberThe callback error code of the current stage, 0 means successful execution
seqnumberseq is an integer, which is the identifier returned by the server when the interface is called, and is used to distinguish different files that are being cached. This parameter is only used when the user caches multiple files at the same time.
percentnumberCache progress
fileIDstringID of cache file
  • Caution: Valid only when the cache file type is static

errorCallback

errorCallback
errorCallback(error: ZegoSuperBoardError): void
Listen for all error errors
NameTypeDescription
errorZegoSuperBoardErrorError message

remoteSuperBoardAuthChangedCallback

remoteSuperBoardAuthChangedCallback
remoteSuperBoardAuthChangedCallback(data: Record<string, number>): void
Return to the target of whiteboard permission change
NameTypeDescription
dataRecord<string, number>Return to the target of whiteboard permission change

Note: {scale:0, scroll:1}

remoteSuperBoardGraphicAuthChangedCallback

remoteSuperBoardGraphicAuthChangedCallback
remoteSuperBoardGraphicAuthChangedCallback(data: Record<string, number>): void
Return to the object of entity permission change
NameTypeDescription
dataRecord<string, number>Return to the object of the change of the entity's permission

Note: {create:1, delete:1, move:1, update:1, clear:0}

remoteSuperBoardSubViewAddedCallback

remoteSuperBoardSubViewAddedCallback
remoteSuperBoardSubViewAddedCallback(name: string, createTime: number, fileID: string, fileType: ZegoSuperBoardFileType, uniqueID: string, whiteboardIDList: array): void
Listen to the peer to create a subView and return the info of the subView created by the peer
NameTypeDescription
namestringName of SuperBoardSubView
createTimenumberCreation Time
fileIDstringFile ID
fileTypeZegoSuperBoardFileTypeFile type, refer to ZegoSuperBoardFileType
uniqueIDstringSuperBoardSubview ID, This ID is unique
whiteboardIDListarrayA list of whiteboard IDs

remoteSuperBoardSubViewRemovedCallback

remoteSuperBoardSubViewRemovedCallback
remoteSuperBoardSubViewRemovedCallback(uniqueID: string): void
Return the uniqueID of the deleted subView
NameTypeDescription
uniqueIDstringReturn the uniqueID of the deleted subView

remoteSuperBoardSubViewRemovedCallback

remoteSuperBoardSubViewRemovedCallback
remoteSuperBoardSubViewRemovedCallback(name: string, createTime: number, fileID: string, fileType: ZegoSuperBoardFileType, uniqueID: string, whiteboardIDList: array): void
Listen to the peer to delete a subView and return the info of the subView deleted by the peer
NameTypeDescription
namestringName of SuperBoardSubView
createTimenumberCreation Time
fileIDstringFile ID
fileTypeZegoSuperBoardFileTypeFile type, refer to ZegoSuperBoardFileType
uniqueIDstringSuperBoardSubview ID, This ID is unique
whiteboardIDListarrayA list of whiteboard IDs

remoteSuperBoardSubViewSwitchedCallback

remoteSuperBoardSubViewSwitchedCallback
remoteSuperBoardSubViewSwitchedCallback(uniqueID: string): void
Return the uniqueID of the switch subView
NameTypeDescription
uniqueIDstringReturn the uniqueID of the switch subView

remoteSuperBoardSubViewSwitchedCallback

remoteSuperBoardSubViewSwitchedCallback
remoteSuperBoardSubViewSwitchedCallback(uniqueID: string): void
Listen to the peer to switch a subView and return the info of the subView switch by the peer
NameTypeDescription
uniqueIDstringSuperBoardSubview ID, This ID is unique

superBoardSubViewScaleChangedCallback

superBoardSubViewScaleChangedCallback
superBoardSubViewScaleChangedCallback(name: string, createTime: number, fileID: string, fileType: ZegoSuperBoardFileType, uniqueID: string, whiteboardIDList: array, scaleFactor: number, scaleOffsetX: number, scaleOffsetY: number): void
Listen to the peer to scale a subView and return the info of the subView scaled by the peer
NameTypeDescription
namestringName of SuperBoardSubView
createTimenumberCreation Time
fileIDstringFile ID
fileTypeZegoSuperBoardFileTypeFile type, refer to ZegoSuperBoardFileType
uniqueIDstringSuperBoardSubview ID, This ID is unique
whiteboardIDListarrayA list of whiteboard IDs
scaleFactornumberScale factor
scaleOffsetXnumberOffset in X direction after scaling
scaleOffsetYnumberOffset in Y direction after scaling

superBoardSubViewScrollChangedCallback

superBoardSubViewScrollChangedCallback
superBoardSubViewScrollChangedCallback(uniqueID: string, page: number, step: number): void
Monitor the scroll subView , and return the uniqueID and page of the subView
NameTypeDescription
uniqueIDstringreturn the uniqueID of the subView
pagenumberreturn the page of the subView
stepnumberThe number of steps for dynamic PPT files

superBoardSubViewScrollChangedCallback

superBoardSubViewScrollChangedCallback
superBoardSubViewScrollChangedCallback(name: string, createTime: number, fileID: string, fileType: ZegoSuperBoardFileType, uniqueID: string, whiteboardIDList: array, currentPage: number, pageCount: number): void
Listen to the peer to scroll a subView and return the info of the subView scrolled by the peer
NameTypeDescription
namestringName of SuperBoardSubView
createTimenumberCreation Time
fileIDstringFile ID
fileTypeZegoSuperBoardFileTypeFile type, refer to ZegoSuperBoardFileType
uniqueIDstringSuperBoardSubview ID, This ID is unique
whiteboardIDListarrayA list of whiteboard IDs
currentPagenumbercurrent page
pageCountnumbertotal page

uploadFileCallback

uploadFileCallback
uploadFileCallback(state: ZegoSuperBoardUploadFileState, errorCode: number, seq: number, upload_percent: number, fileID: string): void
Upload file callback
NameTypeDescription
stateZegoSuperBoardUploadFileStateFile upload is divided into two stages: upload and format conversion
errorCodenumberThe callback error code of the current stage, 0 means successful execution
seqnumberseq is an integer, which is the identifier returned by the server when the interface is called, and is used to distinguish different files that are being cached. This parameter is only used when the user caches multiple files at the same time.
upload_percentnumberupload progress
fileIDstringID of cache file

uploadH5FileCallback

uploadH5FileCallback
uploadH5FileCallback(state: ZegoSuperBoardUploadFileState, errorCode: number, seq: number, upload_percent: number, fileID: string): void
Upload h5 file callback
NameTypeDescription
stateZegoSuperBoardUploadFileStateFile upload is divided into two stages: upload and format conversion
errorCodenumberThe callback error code of the current stage, 0 means successful execution
seqnumberseq is an integer, which is the identifier returned by the server when the interface is called, and is used to distinguish different files that are being cached. This parameter is only used when the user caches multiple files at the same time.
upload_percentnumberupload progress
fileIDstringID of cache file

ZegoSuperBoardCacheFileCallBack

Preload static file progress callback

  • Caution: Valid only when the cache file type is static

Properties

data

data

Parameters returned by preloading static file callback

ZegoSuperBoardDynamicCacheModel

About the relevant parameters returned by dynamic file calling cachefile method

Details

Return only if the preload file type is a dynamic file

  • Caution: This return field is about to be discarded

Properties

totalFileNum

totalFileNum
totalFileNum: number

Total resources of this file

failedFileNum

failedFileNum
failedFileNum: number

The number of failed pre request resources for this file

ZegoSuperBoardErrorData

Error callback

Properties

code

code

error code

msg

msg
msg: string

error message

ZegoSuperBoardStaticCacheModel

About the relevant parameters returned by the callback generated by the static file calling the cachel method

  • Caution: This callback returns only when the preload file type is a static file

Properties

seq

seq
seq: number

The SEQ corresponding to the cache file, such as required when calling cancel cache

state

state
state: CacheState

Current cache state of file

totalFileNum

totalFileNum
totalFileNum: number

Total resources of this file

failedFileNum

failedFileNum
failedFileNum: number

The number of failed pre request resources for this file

loadedFileNum

loadedFileNum
loadedFileNum: number

ca

ZegoSuperBoardUploadCallback

Upload progress and result callback

Properties

data

data
data: ZegoSuperBoardUploadModel

Parameters returned by the upload file generation callback

ZegoSuperBoardUploadH5FileCallback

Callback generated by uploading a custom H5 file

Properties

data

data
data: ZegoSuperBoardUploadModel

Parameters returned by the upload file generation callback

ZegoWhiteboardScaleModel

Zoom information

Properties

scaleFactor

scaleFactor
scaleFactor: number

Current zoom factor

scaleOffsetX

scaleOffsetX
scaleOffsetX: number

Offset in X direction after scaling

scaleOffsetY

scaleOffsetY
scaleOffsetY: number

Y-direction offset after scaling

loadOptions

Load file configuration

Details

this configuration can be used to configure the loading of files, such as the loading callback timing to trigger dynamic ppt

  • Caution: pay attention to the effective conditions of each configuration. Some configuration items may only be effective for certain types of files.

Properties

PPTReady

PPTReady
PPTReady: boolean

set the trigger time of the callback method for loading dynamic files. Usually, the callback is triggered immediately after the information about the loaded file is obtained from the file server.

  • Use cases: get the ready status of loading dynamic ppt files.
  • Required: No.
  • Default value: false, triggered immediately after the file information is obtained from the file server by default.
  • Caution: This parameter is only valid for dynamic ppt files.

uploadOptions

Upload file configuration items

Details

Transcoding configuration for the uploaded file

Properties

renderImgType

renderImgType
renderImgType: RenderImgType

For the static file type to take effect, different parameters can be configured to transcode to the corresponding image format type

~

Reload configuration items

Details

this configuration can be used to configure the loading of files, such as the loading callback timing to trigger dynamic ppt

Supported Versions: 2.7.1 and later

Properties

forceReload

forceReload
forceReload: boolean

Set whether to force refresh.

  • Use cases: When the rendering of the file on some iOS mobile devices is abnormal, execute this API to reload the file.
  • Required: YES.

reloadType

reloadType
reloadType: reloadType

This configuration can be configured for the scope of the release canvas

  • Required: YES.

Previous

Class

Next

Enum