BoardContext
provides whiteboard-related capabilities.
boardConnectionState: string;
Since v1.1.5.
The connection state of the whiteboard.
joinBoard: () => Promise<any>;
Since v1.1.5.
Joins a whiteboard room.
leaveBoard: () => Promise<any>;
Since v1.1.5.
Leaves a whiteboard room.
room: object,
The whiteboard room object.
zoomValue: number,
The value of zooming in or out the whiteboard.
currentPage: number,
The current number of the whiteboard page.
totalPage: number,
The total number of whiteboard pages.
courseWareList: array,
The list of the courseware.
currentColor: string,
The color.
currentStrokeWidth: number,
The line thickness.
hasPermission: boolean,
Whether the user has the permission of drawing on the whiteboard.
currentSelector: string,
The whiteboard selector.
lineSelector: string,
The line drawing tool.
activeMap: Record<string, boolean>,
The active whiteboard tools by default.
ready: boolean,
Whether the whiteboard is ready.
tools: array,
The list of the whiteboard editing tools.
async changeStroke(value: any): void
Set the line thickness.
async changeHexColor(colorHex: string): void
Select a color.
async mountToDOM(dom: HTMLDivElement | null): void
Mount or unmount the whiteboard to the DOM.
async setTool(tool: string): void
Switch tools.
async zoomBoard(type: string): void
Zoom in or out the whiteboard.
async setZoomScale(operation: string): void
Set the ration of zooming in or out.
async changeFooterMenu(itemName: string): void
Set to which whiteboard page that you want to jump to.
downloadList: array,
The list of downloadable classroom resources.
async putSceneByResourceUuid(uuid: string): void
Display the courseware on the whiteboard.
async startDownload(taskUuid: string): void
Starts downloading a file.
async updatePen(value: any): void
Update the pen.
boardPenIsActive: boolean,
Whether the currently selected tool is a pen.
async startOrStopSharing(): void
Start or stop screen sharing.
setLaserPoint(): void
Select the laser pointer.
resourcesList: array,
The list of the courseware.
async refreshCloudResources(): void
Update the courseware list.
async removeMaterialList(resourceUuids: string[]): void
Remove the courseware.
async cancelUpload(): void
Cancels uploading a file to the classroom.
async doUpload(payload: any): void
Uploads a file to the classroom.
async closeMaterial(resourceUuid: string): void
Closes the file.
async installTools(tools: any[]): void
Install tools.
personalResources: array,
The list of courseware uploaded by the teacher through the Flexible Classroom client.
publicResources: array,
The list of courseware assigned by the teaching institution.
async revokeUserPermission(userUuid: string): void
Cancel the whiteboard authorization.
async grantUserPermission(userUuid: string): void
Grant the permission of drawing on the whiteboard to a specified student.