logo
On this page

Zoom in or out


This document describes how to zoom on the whiteboard being displayed.

The image below displays the synchronized zooming effect using the web platform as an example, and the effect on mobile devices is the same.

Prerequisites

Create a whiteboard by referring to Create a super board.

Implementation steps

Enabled by default

The zooming function is enabled by default. You can use your hands to zoom in and out on a whiteboard.

Disable zooming

If you call the setToolType method to use click, you can not zoom in and out.

Enable zooming

Call the setOperationMode method to set the operation mode to ZegoSuperBoardOperationMode.zoom.value to enable the zooming function of ZegoSuperBoard.

// Call the setOperationMode interface to set the operation mode to zoom mode.
ZegoSuperBoardManager.instance.setOperationMode(ZegoSuperBoardOperationMode.zoom.value);

Enable zooming and drawing at the same time

Call the setOperationMode method with the argument ZegoSuperBoardOperationMode.zoom.value|ZegoSuperBoardOperationMode.draw.value to enable both drawing and zooming functions simultaneously.

ZegoSuperBoardManager.instance.setOperationMode(ZegoSuperBoardOperationMode.zoom.value|ZegoSuperBoardOperationMode.draw.value);

Synchronize zooming

To achieve synchronized zooming across all users in the room, the zooming user needs to call the enableSyncScale method to enable the synchronization feature. Other users need to call the enableResponseScale method to enable the response capability.

// To enable the synchronization
ZegoSuperBoardManager.instance.enableSyncScale(true);
// To enable the response
ZegoSuperBoardManager.instance.enableResponseScale(true);

Previous

Turn pages

Next

Switch a whiteboard

On this page

Back to top