logo
On this page

Interface

2026-01-23
IZegoSuperBoardApiCalledCallbackIZegoSuperBoardCacheFileListener
IZegoSuperBoardCreateCallbackIZegoSuperBoardDestroyCallback
IZegoSuperBoardInitCallbackIZegoSuperBoardQueryFileCachedListener
IZegoSuperBoardQueryListCallbackIZegoSuperBoardScrollChangedListener
IZegoSuperBoardSizeChangedListenerIZegoSuperBoardSwitchCallback
IZegoSuperBoardUploadFileListenerIZegoSuperBoardViewListener

IZegoSuperBoardApiCalledCallback

Universal callback interface of SuperBoard

Details

Supported version: v2.0.0.

Detailed description: After calling some interfaces of ZegoSuperBoardManager and ZegoSuperBoardSubView, the call result of this interface will be called back through the general callback interface.

Business scenario: After calling the ZegoSuperBoardManager and ZegoSuperBoardSubView interfaces, judge whether the interface call is successful.

Callback timing: after calling the corresponding interface including IZegoSuperBoardApiCalledCallback, and IZegoSuperBoardApiCalledCallback No null is passed.

Related interfaces: [inputText], [flipToPage], etc.

Declared in IZegoSuperBoardApiCalledCallback.java

Methods

onApiCalledResult

onApiCalledResult
public void onApiCalledResult(int errorCode)
Operation result callback
Declared in IZegoSuperBoardApiCalledCallback.java
NameTypeDescription
errorCodeintError code, 0 means success

IZegoSuperBoardCacheFileListener

Methods

onCache

onCache
public onCache
The callback of the cacheFile method.

Parameters

NameTypeDescription
stateZegoSuperBoardCacheFileStateFile caching is divided into two stages: Caching and Cached.
errorCodeintThe callback error code of the current stage, 0 means successful execution
infoMapHashMap<String, Object>The infoMap in the callbacks at different stages is inconsistent:
Caching stage: If caching is normal, multiple callbacks will be generated, each time including file caching progress. For example, when the cache progress is 50%, the infoMap content is {"cache_percent":0.50,"request_seq"
}; if the cache progress is 100%, the infoMap content is {"cache_percent":1.00,"request_seq"
}. The value corresponding to request_seq 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.
Cache completion stage: If the cache is successful, a callback is generated, and the content of infoMap is {"request_seq"
}.

Details

Supported version: v2.0.0.

Detailed description: After calling the cacheFile interface, the status of the file cache process will be called back through this callback.

Business scenario: Files need to be cached locally.

Callback timing: After calling the cacheFile interface.

Related interface: [cacheFile]

IZegoSuperBoardCreateCallback

Methods

onViewCreated

onViewCreated
Create the completion callback of SubView

Parameters

NameTypeDescription
errorCodeintError code, 0 means success
subViewModelZegoSuperBoardSubViewModelThe data of the successfully created subView. If the creation fails, this value may be null

Details

Supported version: v2.0.0.

Detailed description: After calling the createWhiteboardView and createFileView interfaces, the result of the creation will come out through this callback.

Business scenario: creating whiteboards and files.

Callback timing: Call the createWhiteboardView and createFileView interfaces.

Related interfaces: [createWhiteboardView], [createFileView]

IZegoSuperBoardDestroyCallback

Methods

onViewDestroyed

onViewDestroyed
Delete the completion callback of SubView

Parameters

NameTypeDescription
errorCodeintError code, 0 means success

Details

Supported version: v2.0.0.

Detailed description: After calling the destroySuperBoardSubView interface, the result of deleting the subView will be thrown through the callback.

Business scenario: The specified subView needs to be deleted.

Callback timing: After calling the destroySuperBoardSubView interface.

Related interface: [destroySuperBoardSubView]

IZegoSuperBoardInitCallback

Methods

onInit

onInit
public onInit
Initialization result callback

Parameters

NameTypeDescription
errorCodeintError code, 0 means success

Details

Initialization result callback, please make sure that the initialization is successful. Do not re-initialize, if there are special requirements that need to be initialized multiple times, you can call unInit and then initialize again

  • Available since: v2.0.0

IZegoSuperBoardQueryFileCachedListener

Methods

onQueryCached

onQueryCached
Completion callback of queryFileCached method

Parameters

NameTypeDescription
errorCodeintCallback error code, 0 means successful execution.
fileCachedbooleanDoes the cache exist

Details

After calling the cache file interface cacheFile, it will be thrown through this callback interface

IZegoSuperBoardQueryListCallback

Methods

onQuery

onQuery
public onQuery
The callback interface of querySuperBoardSubViewList

Parameters

NameTypeDescription
errorCodeintError code, 0 means success
subViewModelListZegoSuperBoardSubViewModel[]data of the successfully loaded subView
extraInfoHashMap<String, String>

Details

The callback interface of querySuperBoardSubViewList, which returns the data of the successfully loaded subView

  • Available since: v2.0.0

IZegoSuperBoardScrollChangedListener

Methods

onScrollChange

onScrollChange
Callback of the process of scrolling the whiteboard

Parameters

NameTypeDescription
currentPageintThe current page number of the currently displayed SubView
pageCountintThe total number of pages of SubView currently displayed
subViewModelZegoSuperBoardSubViewModelModel information of the currently displayed SubView

Details

Supported version: 2.0.0 and above.

Detailed description: When BoardView and SubView are scrolling, they will be notified through this callback

IZegoSuperBoardSizeChangedListener

Methods

onSizeChange

onSizeChange
Notification callback after SuperBoardView size changes

Parameters

NameTypeDescription
visibleSizeSizeThe actual size of the visual content in the current BoardView
subViewModelZegoSuperBoardSubViewModelModel information of the currently displayed SubView

Details

Supported version: 2.0.0 and above.

Detailed description: When the size of the SuperBoardView changes, it will be notified through this callback

IZegoSuperBoardSwitchCallback

Methods

onViewSwitched

onViewSwitched
Call back through this interface after switching SubView

Parameters

NameTypeDescription
errorCodeintError code, 0 means success

Details

Supported version: 2.0.0 and above.

Detailed description: When the SubView is switched, it will be notified through this callback

IZegoSuperBoardUploadFileListener

Methods

onUpload

onUpload
public onUpload
The callback of the uploadFile method.

Parameters

NameTypeDescription
stateZegoSuperBoardUploadFileStateFile upload is divided into two stages: upload and format conversion.
errorCodeintThe callback error code of the current stage, 0 means successful execution.
infoMapHashMap<String, Object>The infoMap in the [listener] callback at different stages is inconsistent:
Upload stage: If the upload is normal, multiple callbacks will be generated, each time including the file upload progress. For example, when the upload progress is 50%, the infoMap content is {"upload_percent":0.50,"request_seq"
}; when the upload progress is 100%, the infoMap content is {"upload_percent":1.00,"request_seq"
}. The value corresponding to request_seq is an integer, which is the identifier returned by the server when the interface is called, and is used to distinguish different files being uploaded. This parameter is only used when the user uploads multiple files at the same time.
Format conversion stage: If the conversion is successful, only one callback will be generated, including the converted file ID. For example, the current conversion is completed, the infoMap content is {"upload_fileid":"ekxxxxxxxxv","request_seq"
}.
The corresponding value of upload_fileid is the file fileID.

Details

Supported version: 2.0.0 and above.

Detailed description: When the uploadFile method is called, it will be notified through this callback

IZegoSuperBoardViewListener

Callback for internal changes of ZegoSuperBoardView

Details

Supported version: 2.0.0 and above.

Detailed description: When the BoardView size changes or scrolls, it will be notified through this callback

Declared in IZegoSuperBoardViewListener.java

Methods

onScrollChange

onScrollChange
public void onScrollChange
Declared in IZegoSuperBoardViewListener.java

Parameters

NameTypeDescription
currentPageintThe current page number of the currently displayed SubView
pageCountintThe total number of pages of SubView currently displayed
subViewModelZegoSuperBoardSubViewModelModel information of the currently displayed SubView

Details

If the currently displayed SubView is scrolled, it will be called back through this method.

  • Available since: v2.0.0

onSizeChange

onSizeChange
public void onSizeChange
If the size of the currently displayed SubView changes, it will be called back through this method.
Declared in IZegoSuperBoardViewListener.java

Parameters

NameTypeDescription
visibleSizeSizeThe size of the visible area
subViewModelZegoSuperBoardSubViewModelData corresponding to the changed SubView

Details

If the size of the currently displayed SubView changes, it will be called back through this method.

  • Available since: v2.0.0

Previous

Class

Next

Enum