# ViewCallbacks (/zh-CN/api-reference/whiteboard/whiteboard-sdk/web/interfaces/viewcallbacks) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ```ts export declare type ViewCallbacks = { onCameraTransform: (mode: CameraTransformation)=>void; onHandToolActive: (active: boolean)=>void; onSizeUpdated: (size: Size)=>void; onRenderDuration: (renderDuration: number)=>void; onCameraUpdated: (camera: Camera)=>void; onCameraUpdatedByDevice: (camera: Camera)=>void; onScenePathUpdated: (scenePath: string)=>void; onKeyDown: (event: KeyboardEvent)=>void; onKeyUp: (event: KeyboardEvent)=>void; onCanUndoStepsUpdate: (canUndoSteps: number)=>void; onCanRedoStepsUpdate: (canRedoSteps: number)=>void; onActiveHotkey: (hotKey: string)=>void; }; ```