Protocol
| ZegoSuperBoardManagerDelegate | ZegoSuperBoardSubViewDelegate |
| ZegoSuperBoardViewDelegate |
ZegoSuperBoardManagerDelegate
ZegoSuperBoardManager for some synchronization information and error message callbacks
Declared in ZegoSuperBoardManager.h
Methods
onError:error:
- (void)onError:(ZegoSuperBoardError) error;ZegoSuperBoardManager.hParameters
| Name | Type | Description |
|---|---|---|
| error | ZegoSuperBoardError |
- Trigger: Error callbacks in procedures using the ZegoSuperBoard SDK.
- Available since: v2.0.0.
When to
onRemoteSuperBoardSubViewAdded:model:
- (void)onRemoteSuperBoardSubViewAdded:(ZegoSuperBoardSubViewModel *) model;ZegoSuperBoardManager.hParameters
| Name | Type | Description |
|---|---|---|
| model | ZegoSuperBoardSubViewModel * | Corresponds to the model of the added SuperBoardSubView |
- Trigger: After another user in the same room successfully creates a whiteboard or file (by invoking [createWhiteboardView] or [createFileView]), the local end receives this notification.
- Available since: v2.0.0 .
When to
onRemoteSuperBoardSubViewRemoved:model:
- (void)onRemoteSuperBoardSubViewRemoved:(ZegoSuperBoardSubViewModel *) model;ZegoSuperBoardManager.hParameters
| Name | Type | Description |
|---|---|---|
| model | ZegoSuperBoardSubViewModel * | Model of the corresponding SuperBoardSubView |
- Trigger: After another member in the same room successfully destroys ZegoSuperBoardSubView (calling [destroySuperBoardSubView]), the local end will receive this notification.
- Available since: v2.0.0
When to
onRemoteSuperBoardSubViewSwitched:uniqueID:
- (void)onRemoteSuperBoardSubViewSwitched:(NSString *) uniqueID;ZegoSuperBoardManager.hParameters
| Name | Type | Description |
|---|---|---|
| uniqueID | NSString * | The uniqueID of the corresponding SuperBoardSubView to which to switch |
- Trigger: After ZegoSuperBoardSubView is successfully switched by other members in the same room (by calling switchSubView), the local end receives this notification.
- Available since: v2.0.0
When to
onRemoteSuperBoardAuthChanged:authInfo:
- (void)onRemoteSuperBoardAuthChanged:(NSDictionary *) authInfo;ZegoSuperBoardManager.hParameters
| Name | Type | Description |
|---|---|---|
| authInfo | NSDictionary * | authInfo The value of scale and Scroll keys is 0 and 1 (0 indicates that the corresponding permission is off and 1 indicates that the corresponding permission is on). |
Details
The whiteboard operation permission change callback is used to control the operation of the whiteboard, including zooming and scrolling.
When to
- Trigger: Received the permission change notification in the background.
- Available since: v2.0.0
onRemoteSuperBoardGraphicAuthChanged:authInfo:
- (void)onRemoteSuperBoardGraphicAuthChanged:(NSDictionary *) authInfo;ZegoSuperBoardManager.hParameters
| Name | Type | Description |
|---|---|---|
| authInfo | NSDictionary * | AuthInfo Contains five keys: create, DELETE, move, Update, and clear. The values are 0 and 1 (0 indicates that the corresponding permission is off and 1 indicates that the corresponding permission is on). |
Details
The primitive operation permissions include creating, deleting, moving, updating, and clearing all primitives.
- When to call /Trigger: Received the permission change notification in the background.
- Available since: v2.0.0
ZegoSuperBoardSubViewDelegate
ZegoSuperBoardSubView internal change callback
Declared in ZegoSuperBoardSubView.h
Methods
onScrollChange:currentPage:pageCount:subViewModel:
- (void)onScrollChange:(NSInteger) currentPage pageCount:(NSInteger) pageCount subViewModel:(ZegoSuperBoardSubViewModel *) subViewModel;ZegoSuperBoardSubView.hParameters
| Name | Type | Description |
|---|---|---|
| currentPage | NSInteger | Current page number after page change |
| pageCount | NSInteger | The total page number |
| subViewModel | ZegoSuperBoardSubViewModel * | ZegoSuperBoardSubView object corresponding to the subViewModel |
Details
When the onScrollChange callback is received, the SDK has handled the update of the whiteboard and file page number internally, and the interface can get the current page number user display through the callback.
When to
- Trigger: This callback is triggered when scrolling or page turning occurs within the file or whiteboard.
- Available since: v2.0.0.
onSizeChange:size:subViewModel:
- (void)onSizeChange:(CGSize) size subViewModel:(ZegoSuperBoardSubViewModel *) subViewModel;ZegoSuperBoardSubView.hParameters
| Name | Type | Description |
|---|---|---|
| size | CGSize | The size of the visible content inside the SuperBoardSubView |
| subViewModel | ZegoSuperBoardSubViewModel * | ZegoSuperBoardSubView object corresponding to the subViewModel |
Details
When the onSizeChange callback is received, the SDK has already handled the whiteboard and file Size updates internally. The interface can get the Size of the current viewable content area in the SuperBoardSubView view through the callback.
When to
- Trigger: This callback is triggered when the ZegoSuperBoardSubView size is changed.
- Available since: v2.0.0
onScaleChangedWithScaleFactor:scaleFactor:scaleOffsetX:scaleOffsetY:subViewModel:
- (void)onScaleChangedWithScaleFactor:(CGFloat) scaleFactor scaleOffsetX:(CGFloat) scaleOffsetX scaleOffsetY:(CGFloat) scaleOffsetY subViewModel:(ZegoSuperBoardSubViewModel *) subViewModel;ZegoSuperBoardSubView.hParameters
| Name | Type | Description |
|---|---|---|
| scaleFactor | CGFloat | Zooming coefficient |
| scaleOffsetX | CGFloat | Horizontal offset generated during zooming |
| scaleOffsetY | CGFloat | Vertical offset generated during zooming |
| subViewModel | ZegoSuperBoardSubViewModel * | subViewModel of the ZegoSuperBoardSubView object |
Details
Implement this method to respond to zooming.
When to
- Trigger: After the zooming operation, this callback method is called to notify the service layer. SDK users obtain the zooming coefficient based on the method parameters.
onStepChange
- (void)onStepChange;ZegoSuperBoardSubView.hImplement this method to monitor the animation step changes in the dynamic PPT.
When to Trigger Notify when the animation steps in the dynamic PPT change.
ZegoSuperBoardViewDelegate
ZegoSuperBoardView event callback
Declared in ZegoSuperBoardView.h
Methods
onScrollChange:currentPage:pageCount:subViewModel:
- (void)onScrollChange:(NSInteger) currentPage pageCount:(NSInteger) pageCount subViewModel:(ZegoSuperBoardSubViewModel *) subViewModel;ZegoSuperBoardView.hParameters
| Name | Type | Description |
|---|---|---|
| currentPage | NSInteger | Current page number after page change |
| pageCount | NSInteger | Total number of pages |
| subViewModel | ZegoSuperBoardSubViewModel * | ZegoSuperBoardSubView object corresponding to the subViewModel |
Details
When the onScrollChange callback is received, the SDK has handled the update of the whiteboard and file page number internally, and the interface can get the current page number user display through the callback.
When to
- Trigger: This callback is triggered when scrolling or page turning occurs within the file or whiteboard.
- Available since: v2.0.0.
onSizeChange:size:subViewModel:
- (void)onSizeChange:(CGSize) size subViewModel:(ZegoSuperBoardSubViewModel *) subViewModel;ZegoSuperBoardView.hParameters
| Name | Type | Description |
|---|---|---|
| size | CGSize | SuperBoardSubView Size of visible content |
| subViewModel | ZegoSuperBoardSubViewModel * | ZegoSuperBoardSubView object corresponding to the subViewModel |
Details
When the onSizeChange callback is received, the SDK has already handled the whiteboard and file Size updates internally. The interface can get the Size of the current viewable content area in the SuperBoardSubView view through the callback.
When to
- Trigger: This callback is triggered when the ZegoSuperBoardSubView size is changed.
- Available since: v2.0.0
onStepChange
- (void)onStepChange;ZegoSuperBoardView.hImplement this method to monitor the animation step changes in the dynamic PPT.
When to Trigger Notify when the animation steps in the dynamic PPT change.
