The user ID of the host. This property is undefined
if there is no host in the room.
The view mode of the user.
View description.
The X coordinate of the center of the view in the world coordinate system (taking the center of the initial whiteboard as the origin).
The Y coordinate of the center of the view in the world coordinate system (taking the center of the initial whiteboard as the origin).
The scale factor of the view.
The CameraBound
type is used to set the viewable area.
Within the viewable area, the user can flexibly move or zoom the view. When the user tries to move the view beyond the viewable area, the SDK automatically drags the view back into the viewable area.
The X coordinate of the center of the viewable area in the world coordinate system (taking the center of the initial whiteboard as the origin). The default value is 0.0.
The Y coordinate of the center of the viewable area in the world coordinate system (taking the center of the initial whiteboard as the origin). The default value is 0.0.
The resistance coefficient. The value range is [0.0,1.0], and the default is 0.75. The higher the value, the larger the resistance felt by the user when they move or scale up the view beyond the viewable area.
0.0
: The user feels no resistance when moving or scaling up the view
beyond the viewable area. Once the user stops moving or scaling up, the
view returns to its original position.1.0
: The user cannot move or scale up the view beyond the viewable area.The height (pixels) of the viewable area. The default value is Infinity
,
implying that the viewable area has no boundaries.
The maximum scale factor of the viewable area. If you do not set this property, there is no upper limit on the scale factor.
The minimum scale factor of the viewable area. If you do not set this property, there is no lower limit on the scale factor.
The width (pixels) of the viewable area. The default value is Infinity
,
implying that the viewable area has no boundaries.
Color in RGB format. For example, [0, 0, 255]
represents blue.
Basic configuration for Room objects.
Sets the viewable area, within which the user can flexibly move or zoom the view.
The default value is undefined
, implying that the viewable area has no boundaries.
Whether to allow zooming the whiteboard by holding down the command
key and scrolling the mouse wheel.
Sets the cursor adapter.
Set to false
to no longer display internal preset cursors (laser pen, eraser, etc.).
Whether to disable the auto-resize function:
true
: Disable the auto-resize function. In this case, you need to call
refreshViewSize
every time the size of the view changes.false
: (Default) Enable the auto-resize function.Whether to disable the user from adjusting (moving or zooming) the view through touch screen gestures or mouses:
true
: Disable the user from adjusting the view.false
: (Default) Enable the user to adjust the view.This property does not affect the use of the setCameraBound
, moveCamera
,
andmoveCameraToContain
methods.
Whether to disable the highlighted box when another user puts their cursor on an object on the whiteboard:
Invisible plugins.
An array of React.ComponentType
objects, which is used to package the
whiteboard view. The default value is [].
The actual scale factor.
The HTTP response returned by the server when you Query file conversion progress.
The reason why the file-conversion task fails.
Details about the file-conversion progress.
The status of the file-conversion task.
The type of the file-conversion task.
The unique identifier (UUID) of the file-conversion task.
The image or dynamic PPT slide generated by file conversion.
The URL address of the image, or the URI address of the dynamic PPT slide.
The height (px) of the image or dynamic PPT slide.
The URL address of the preview for the image or dynamic PPT slide.
The width (px) of the image or dynamic PPT slide.
Cursor description.
The height of the cursor icon.
The width of the cursor icon.
The X coordinate of the center of the area the cursor is pointing to (taking the upper left corner of the cursor icon as the origin).
The Y coordinate of the center of the area the cursor is pointing to (taking the upper left corner of the cursor icon as the origin).
Callbacks for Displayer
objects.
Reports the failure of loading background image.
Reports the error occurred during the synchronization of a user's operations.
The user ID of the user.
An error message.
Reports the error occurred in rendering.
An error message.
Whether the user currently has write permission:
true
: The user has write permission.false
: The user does not have write permission.Reports whether the hand tool is enabled.
Whether the hand tool is enabled:
true
: The hand tool is enabled.false
: The hand tool is disabled.Occurs when a media file in the dynamic PPT slide stops playing.
The ID of the shape where the media file is inserted.
The type of the media file.
Occurs when a media file in the dynamic PPT slide starts playing.
The ID of the shape where the media file is inserted.
The type of the media file.
Reports exceptions that occur during the playing of the media file in a dynamic PPT slide.
The ID of the shape where the media file is inserted.
The type of the media file. See MediaType.
An error message.
Reports the rendering duration.
The rendering duration.
Occurs when the current slice changes.
The unique identifier (UUID) of the slice.
DisplayerState
is used by Room
objects.
The state of the current view.
The global state of the room. See GlobalState.
The states of all the users in interactive mode (the users who have read and write permissions on the whiteboard).
The state of the current scene.
Customized events.
The user ID of the event trigger. If it is a system event, the user ID is AdminObserverId
.
The name of the customized event.
The content of the customized event.
The state of the customized event.
The scope of the customized event.
The filter for an event.
The listener for an event.
The listener for a group of events.
Floating bar configuration.
The color palette of the floating bar.
The globalState
object is a public global variable.
All users in the room can read the globalState
object, while users in
interactive mode can modify the globalState
object.
The modified globalState
object will be updated to all users in the room immediately.
Customized hotkeys.
Hotkey checker.
Description of the customized hotkey.
Whether the Alt key is used.
Whether the Ctrl key is used.
The specified key.
Whether the Shift key is used.
The event of the customized hotkey.
Whether the Alt key is used.
Whether the Ctrl key is used.
The specified key.
The event of the hotkey:
KeyDown
: The hotkey is pressed.KeyUp
: The hotkey is released.The browser event.
Whether the Shift key is used.
The action triggered by the hotkey.
Switch to arrow tool (arrow
).
Switch to clicker (clicker
).
Switch to ellipse tool (ellipse
).
Switch to eraser (eraser
).
Switch to hand tool (hand
).
Switch to laser pointer (laserPointer
).
Switch to pen tool (pencil
).
Switch to rectangle tool (rectangle
).
Switch to selection tool (selector
).
Switch to line tool (straight
).
Switch to text tool(text
).
Copy.
Delete.
Copy and paste.
Lock the zoom level.
Paste.
Redo.
Undo.
The unique identifier of a component plugin.
Image description.
The X coordinate of the center of the image in the world coordinate system (taking the center of the initial whiteboard as the origin).
The Y coordinate of the center of the image in the world coordinate system (taking the center of the initial whiteboard as the origin).
Whether to load images in cross-origin mode.
The height (px) of the image. If the height of the image is greater than the boundary of the view, then users cannot see the excess part.
Whether the image is locked:
true
: Locked. When an image is locked, users cannot move or zoom the image.false
: Unlocked.Whether the image can only be resized proportionately.
The unique identifier (UUID) of the image.
The width (px) of the image. If the width of the image is greater than the boundary of the view, then users cannot see the excess part.
This type is used to add text to the menu on the PPT preview page. You can pass in the letters to be displayed, for example, "Next".
The text for "display slide notes".
The text for "display the sidebar".
The text for "hide slide notes".
The text for "hide the sidebar".
The text for "jump to".
The text for "the next page".
The text for "the next step".
The text for "page number".
The text for “the previous page”.
The text for "the previous step".
The text for "reset animation of the current PPT file".
The text for "reset animation of the current slide".
Callbacks for the invisible plugin.
Occurs when the attributes of the invisible plugin are updated.
The updated attributes.
Occurs when the invisible plugin is deleted.
Invisible plugin.
The type of the invisible plugin.
Occurs when the invisible plugin is created.
The created invisible plugin.
Occurs when the invisible plugin is deleted.
The deleted invisible plugin.
The context of the invisible plugin.
The Displayer
object of the invisible plugin.
The type of the invisible plugin.
Configurations for a Room object, which are used to join a live Interactive Whiteboard room. This type inherits ConstructRoomParams and adds the following properties:
uuid: string
Room UUID, the unique identifier of a room. This property is returned after a room is created successfully.
uid: string
Since v2.15.0
The unique identifier (UID) of a user in a string format. The maximum length is 1024 bytes.
Ensure that the uid
of each user in the same room is unique.
region?: string
The data center, which supports the following values:
region |
Data center | Service area |
---|---|---|
us-sv |
Silicon Valley, United States | North America and South America |
sg |
Singapore | Singapore, East Asia, and Southeast Asia |
in-mum |
Mumbai, India | India |
eu |
Frankfurt, Europe | Europe |
cn-hz |
Hangzhou, China | Areas not covered by other data centers |
Note
region
property in
WhiteWebSdkConfiguration to set the data center. If you set both,
this property overrides the region
in WhiteWebSdkConfiguration
.roomToken: string
The Room Token for user authentication. See Token overview.
userPayload?: {[key: string]: any;}
Customized user information. This property can use any data type.
Refer to the following code to enable other users to read the userPayload
of a specific user, which is set when the user joins the room:
The output log level.
Log configuration.
The log printing level of the SDK. See Level. The default level is info
.
The mode for the SDK to report logs at the debug
level.
The log reporting level of the SDK. See Level.
The mode of the SDK to report connection quality data.
Options for setting a custom event listener.
The interval (ms) of the SDK triggering custom event callbacks. The default value is 500. The value must be equal to or greater than 500.
The SDK triggers the custom event callbacks based on the set value of this parameter.
Sets whether to send event callbacks after the Agora server acknowledges the dispatchMagixEvent method call is successful:
Margin configuration.
The bottom margin in pixels.
The left margin in pixels.
The right margin in pixels.
The top margin in pixels.
The type of the media file:
video
: A video file.audio
: An audio file.Customized user information.
The state of the whiteboard tool in a live Interactive Whiteboard room.
Whether to automatically switch to the selection tool after drawing an arrow:
true
: Automatically switch.false
: (Default) Do not automatically switch.Whether to bold the text:
true
: Bold the text.false
: (Default) Do not bold the text.The name of the whiteboard tool currently in use. See ApplianceNames.
Whether to support drawing dotted lines:
true
: Support drawing dotted lines.false
: (Default) Do not support drawing dotted lines.Whether to automatically switch to the selection tool after drawing a circle:
true
: Automatically switch.false
: (Default) Do not automatically switch.Sets the fill color of the graphic element. Only applicable to closed shapes such as circles and rectangles.
Whether to italicize the text:
true
: Italicize the text.false
: (Default) Do not italicize the text.Whether to apply strikethrough formatting to the text:
true
: Apply strikethrough formatting.false
: (Default) Do not apply strikethrough formatting.Whether to automatically switch to the selection tool after drawing a rectangle:
true
: Automatically switch.false
: (Default) Do not automatically switch.Whether to automatically switch to the selection tool after drawing a triangle, speech balloon, or other shapes:
true
: Automatically switch.false
: (Default) Do not automatically switch.The shape type.
Whether to automatically switch to the selection tool after drawing a straight line:
true
: Automatically switch.false
: (Default) Do not automatically switch.The stroke color in RGB format. For example, [0, 0, 255]
represents blue.
The stroke width.
Whether to allow directly selecting and editing whiteboard text:
true
: Allow directly selecting and editing whiteboard text.false
: (Default) Do not allow directly selecting and editing whiteboard text.The stroke color in RGB format. For example, [0, 0, 255]
represents blue.
Whether to automatically switch to the selection tool after typing with the text tool:
true
: Automatically switch.false
: (Default) Do not automatically switch.The font size of the text. The Chrome browser automatically adjusts fonts smaller than 12 to 12.
Sets the default font size for the text tool. If not set, the default is to use textSize
, which is the last set text size.
Whether to underline the text:
true
: Underline the text.false
: (Default) Do not underline the text.Browser events.
MouseEvent
: See MouseEvent。WheelEvent
: See WheelEvent。KeyboardEvent
: See KeyboardEvent。TouchEvent
: See TouchEvent。Description of the image or dynamic PPT slide output by file conversion.
The height of the image or dynamic PPT slide.
The type of the file-conversion task.
The list of scenes related to the image or dynamic PPT slide.
The unique identifier (UUID) of the file-conversion task.
The width of the image or dynamic PPT slide.
The callbacks for the file-conversion task.
Occurs when the conversion progress is updated.
The progress details.
Occurs when the task fails.
The error message.
The parameters of the PPTTask
object.
The callbacks for the file-conversion task.
The time interval (ms) to automatically query the state of the file-conversion task.
The timeout (ms) of the automatic query.
The type of the file-conversion task.
The data center that processes the file-conversion task. The following values are supported:
region |
Data center | Service area |
---|---|---|
us-sv |
Silicon Valley, United States | North America and South America |
sg |
Singapore | Singapore, East Asia, and Southeast Asia |
in-mum |
Mumbai, India | India |
eu |
Frankfurt, Europe | Europe |
cn-hz |
Hangzhou, China | Areas not covered by other data centers |
The Task Token for authentication of the file-conversion task.
The unique identifier (UUID) of the file-conversion task.
The progress details of the file-conversion task.
The number of pages converted.
The conversion progress (in percentage).
The current step of the file-conversion task.
The state of the file-conversion task.
The total number of pages to be converted.
Whether to enable the pen tool (pencil
) to draw a point:
true
: Enable the pen tool to draw a point.false
:(Default) Disable the pen tool from drawing a point.
In this case, clicking on the whiteboard with the pen tool does not draw a point on the screen.Note
This parameter takes effect only when disableNewPencil
is set to false
.
Description of component plugins.
Agora supports two kinds of custom plugins: component plugins and invisible plugins.
Default attributes.
Hit test, which you can use to define the selectable area of the component plugin for the selection tool.
The component plugin object.
The X coordinate of the center of the selectable area.
The Y coordinate of the center of the selectable area.
The radius of the selectable area.
The result of the hit test:
true
: The hit test succeeds.false
: The hit test fails.The type of the component plugin, which is the unique identifier of the plugin.
The style of the component plugin.
Determines whether to interrupt the native events of the component plugin.
The component plugin object.
The native events.
Whether to interrupt the native events of the component plugin:
true
: Interrupt the native events.false
: Do not interrupt the native events.Description of component plugin objects.
The attributes of the component plugin object.
The height of the component plugin object.
The X coordinate of the upper left corner of the component plugin object in the world coordinate system (taking the center of the initial whiteboard as the origin).
The Y coordinate of the upper left corner of the component plugin object in the world coordinate system (taking the center of the initial whiteboard as the origin).
Whether the component plugin object can be selected:
true
: The component plugin object can be selected.false
: The component plugin object cannot be selected.The width of the component plugin object.
Style configuration of the component plugin.
The space around the component plugin icon.
The coordinates of the center of the component plugin icon in the world coordinate system (taking the center of the initial whiteboard as the origin).
The component plugin object.
The scale factor of the component plugin icon.
The size of the component plugin icon.
Coordinates of a point in the world coordinate system (taking the center of the initial whiteboard as the origin).
The X coordinate of the point in the world coordinate system.
The Y coordinate of the point in the world coordinate system.
Description of the image or dynamic PPT slide.
To present the image or dynamic PPT slide on the whiteboard scene, you can
configure PptDescription
when initializing a WhiteScene
object .
The following formats are supported:
Note
The height (px) of the image or dynamic PPT slide.
The URL address of the preview image for the image or dynamic PPT slide.
You can get the URL address of the dynamic PPT preview in the preview
field
in the query result of the file conversion task.
For example, "https://docs-test-xxx.oss-cn-hangzhou.aliyuncs.com/dynamicConvert/2fdxxxxx67e/preview/1.png".
The address of the image or dynamic PPT slide. The supported formats are as follows:
"https://docs-test-xxx.oss-cn-hangzhou.aliyuncs.com/staticConvert/2fdxxxxx67e/1.jpeg"
."pptx://cover.herewhite.com/dynamicConvert/6a212c90fa5311ea8b9c074232aaccd4/1.slide"
.The width (px) of the image or dynamic PPT slide.
Configurations for dynamic PPT files.
Configurations of the PPT preview page.
Adds text to the menu on the preview page. See International.
Details about the file-conversion progress.
The generated file.
The number of pages converted.
The conversion progress (in percentage).
The current step of the file-conversion task.
The total number of pages to be converted.
AgoraRTCClient
is used for bridging the audio mixing method of the Agora
RTC SDK and the Interactive Whiteboard SDK.
When you use the Agora RTC SDK and Interactive Whiteboard SDK at the same time, and the dynamic PPT slides displayed in the whiteboard contain audio files, you may encounter the issues of low volume and/or echoes when playing the audio in the PPT slides.
To solve these issues, you can use the AgoraRTCClient
type to call the
audio mixing method of the Agora RTC SDK to play the audio files in the
dynamic PPT slides.
Note
Currently only the Agora RTC SDK for Electron is supported.
Adjusts the volume of audio mixing for local playback.
Audio mixing volume for local playback. The value ranges between 0 and 100. The default is 100, indicating the original volume.
Adjusts the volume of audio mixing for publishing (sending to other users).
Audio mixing volume for remote playback. The value ranges between 0 and 100. The default is 100, indicating the original volume.
Adjusts the volume of audio mixing.
This method adjusts the audio mixing volume for both local playback and publishing (sending to other users).
Audio mixing volume. The value ranges between 0 and 100. The default is 100, indicating the original volume.
Gets the playback position of the music file.
Gets the duration of the music file played by startAudioMixing
.
Gets the audio mixing volume for local playback.
Gets the audio mixing volume for publishing.
Pauses playing and mixing the music file.
Resumes playing and mixing the music file.
Sets the playback position of the music file to a different starting position (the default plays from the beginning).
The playback starting position (ms), which must be an integer.
Starts playing and mixing the music file.
The absolute path or URL address of the music file.
Whether to only play music files on the local client:
true
: Only play music files on the local client so that only the local user can hear the music.false
: Publish music files to remote clients so that both the local user and remote users can hear the music.Whether to replace the audio collected by the microphone with a music file:
true
: Replace the audio. Users can only hear music.false
: Do not replace the audio. Users can hear both music and audio collected by the microphone.The number of times the music file plays.
Occurs when the SDK starts playing and mixing the music file.
state: number
represents the state of playing or mixing the music file.
errorCode: number
represents an error code.
Occurs when the SDK starts playing and mixing the music file.
state: number
represents the state of playing or mixing the music file.
errorCode: number
represents an error code.
Stops playing or mixing the music file.
Occurs when the SDK stops playing or mixing the music file.
state: number
represents the state of playing or mixing the music file.
errorCode: number
represents an error code.
Occurs when the SDK stops playing or mixing the music file.
state: number
represents the state of playing or mixing the music file.
errorCode: number
represents an error code.
Reconnection configuration.
Whether to disable the reconnection mechanism when the user drops offline:
true
: Disable the reconnection mechanism.false
: Enable the reconnection mechanism.View rectangle description. This type inherits Size and adds the following members:
originX: number
The X coordinate of the left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin).
originY: number
The Y coordinate of the left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin).
Rendering of the component plugin.
The default attributes of the component plugin.
Hit test, which you can use to define the selectable area of the component plugin for the selection tool.
The component plugin object.
The X coordinate of the center of the selectable area.
The Y coordinate of the center of the selectable area.
The radius of the selectable area.
The result of the hit test:
true
: The hit test succeeds.false
: The hit test fails.The type of the component plugin, which is the unique identifier of the component plugin.
The style of the component plugin.
Determines whether to interrupt the native events of the component plugin.
The component plugin object.
The native events.
Whether to interrupt the native events of the component plugin:
true
: Interrupt the native events.false
: Do not interrupt the native events.RoomCallbacks
contains callbacks for live Interactive Whiteboard rooms.
This type inherits DisplayerCallbacks and adds the following members:
onConnection: (duration: number)=>void
Occurs when the room is connected, reporting that the WebSocket connection is established and ready to start initialization.
Information of the users in interactive mode in the live Interactive Whiteboard room.
The member ID of the user.
When a user joins the live Interactive Whiteboard room in interactive mode, the SDK assigns a unique member ID for the user.
The state of the whiteboard tool currently in use by the user. See MemberState.
The customized user information, which is passed in when the user joins the room. See UserPayload.
The session ID.
All states of a live Interactive Whiteboard room. This type inherits DisplayerState and adds the following members:
memberState: MemberState
The state of the whiteboard tool currently in use. See MemberState.
broadcastState: Readonly
The current state of the view.
Definition of a scene.
The name of the scene.
The image or dynamic PPT slide to be displayed in the scene.
A scene can display one image or dynamic PPT slide. You can set the width, height, URL address, and preview of the image or dynamic PPT slide in PptDescription.
List of scenes.
The list of scenes under a scene directory.
The scene state.
The path of the current scene directory.
The index of the current scene under its scene directory.
The name of the current scene.
The path of the current scene.
The list of scenes under the current scene directory.
Scene callbacks.
Occurs when a new scene is added to the specified scene directory.
Occurs when a new subdirectory is added to the specified scene directory.
Occurs when a scene is deleted from the specified scene directory.
Occurs when a subdirectory is deleted from the specified scene directory.
Occurs when the number of scenes under the specified scene directory changes.
Occurs when the number of subdirectories under the specified scene directory changes.
Size description.
The height of the object.
The width of the object.
The text format.
Whether to bold the text:
true
: Bold the text.false
: (Default) Do not bold the text.The stroke color in RGB format. For example, [0, 0, 255]
represents blue.
The font size. The value must be greater than 0.
Whether to italicize the text:
true
: Italicize the text.false
: (Default) Do not italicize the text.Whether to apply strikethrough formatting to the text:
true
: Apply strikethrough formatting.false
: (Default) Do not apply strikethrough formatting.Whether to underline the text:
true
: Underline the text.false
: (Default) Do not underline the text.Custom icons.
Custom fonts.
Custom fonts in key-value pairs. The key
is the font name and the value
is the URL address of the font file. For example, "Calibri": "https://your-cdn.com /Calibri.ttf"
.
Customized user information.
[key: string]: any
The customized user information in key-value pairs. For example, "avatar", "https://example.com/user.png"
.
uid: string
The unique identifier of a user in a string format. The maximum length is 1024 bytes.
Ensure that the uid
of each user in the same room is unique.
Whiteboard scene.
The scene name.
The image or dynamic PPT slide to be displayed in the scene. A scene can display one image or dynamic PPT slide. You can set the width, height, URL address, and preview of the image or dynamic PPT slide in PptDescription.
Configuration for the WhiteWebSdk
object.
Note
After the WhiteWebSdk
object is initialized, you cannot call any method in
WhiteWebSdkConfiguration
to modify the configuration of the WhiteWebSdk
object.
The unique app identifier issued to your Interactive Whiteboard project by Agora. See Get security credentials for your whiteboard project.
The device type, which determines how the SDK handles mouse and touch events.
If you pass in an incorrect value, the SDK may not respond to the device inputs as expected. If you do not pass in a value, the SDK determines the device type using its internal logic.
Sets whether to disable tween animation for the new pencil:
true
: Disable tween animation. This can decrease latency, but cause freezes in the writing or drawing process seen by remote users.false
: (Default) Enable tween animation. This allows the SDK to automatically insert frames between keyframes when a user draws or writes with the pencil, so that remote users see a smoother drawing process, but this increases latency.Sets whether to disable the stroke effect of the new pencil:
true
: Disable the stroke effect.false
: (Default) Enable the stroke effect.Sets whether to disable image rotation:
true
: Enable image rotation.This allows users to rotate a selected image by any angle.false
: (Default) Disable image rotation.The font of the characters entered by the text tool (currentApplianceName="text"
).
If you do not set this property, the SDK uses the default font of the browser.
Custom fonts.
To display unconventional fonts in dynamic PPT slides, you
need to upload the font file to your app server or a third-party cloud
storage and generate a URL address, then pass the URL address to this property
when initializing the WhiteWebSdk
object.
The hotkey for the hand tool.
When you press the hotkey, the whiteboard tool automatically switches to
the hand tool (currentApplianceName="hand"
).
Once you release the key, the whiteboard tool switches back to your
original tool in use.
If you do not set this property, the hotkey switch function is disabled.
Invisible plugins.
SDK log configuration. See LoggerOptions.
Occurs when the WhiteWebSdk
object fails to initialize.
An error message.
Whether to receive only callbacks of remote user state changes.
true
: (Default) The local user receives only callbacks of remote user
state changes and does not receive callbacks of their own state changes.false
: The local user receives callbacks of remote user state changes
as well as callbacks of their own state changes.Component plugins.
Configuration for dynamic PPT files. See PptParams.
Whether to preload all image resources in dynamic PPT slides when loading the homepage of the slides.
true
: Preload all image resources in dynamic PPT slides when loading
the homepage of the slides.false
: (Default) Do not preload all image resources in dynamic PPT
slides when loading the homepage of the slides.Note
Agora does not recommend setting preloadDynamicPPT(true)
, because the
setting slows down the PPT display.
Reconnection configuration. The reconnection mechanism is enabled by default.
To disable the reconnection mechanism, set reconnectionOptions
as false
or disableReconnect
as true
.
The data center, which supports the following values:
region |
Data center | Service area |
---|---|---|
us-sv |
Silicon Valley, United States | North America and South America |
sg |
Singapore | Singapore, East Asia, and Southeast Asia |
in-mum |
Mumbai, India | India |
eu |
Frankfurt, Europe | Europe |
cn-hz |
Hangzhou, China | Areas not covered by other data centers |
Note
This property must has the same value as the data center you set when creating the room; otherwise, the SDK fails to connect to the room.
Rendering modes for drawings on the whiteboard. The default is Canvas
.
The user's screen type, which is used to adjust parameters for gesture
recognition. The default is Desktop
.
Intercepts the URL address of a resource on the whiteboard (for example, an image) and replaces it.
For example, you can use the following code to add a suffix for the URL addresses of all images in the return value:
The original URL address of the resource.
The new URL address.
Whether to use MobX to listen for displayer.state
:
true
: Use MobX to listen for displayer.state
, which turns
displayer.state
into a MobX observable object. See Creating observable state.false
: Do not use MobX to listen for displayer.state
.An array of React.ComponentType
objects, which is used to package the
whiteboard view. The default value is [].
Refer to the following code to package the whiteboard view:
Configurations for the view rectangle.
The view rectangle defines a rectangle area which the view must cover. After you set a view rectangle, the SDK automatically adjusts the view to fully contain the rectangle area, so as to ensure contents within the rectangle area are completely displayed.
You can set a rectangle according to the size of the PPT slide or image to be displayed, to ensure the same content is displayed completely on screens of different sizes.
The height of the view rectangle.
Do not set this property to a value smaller than the height of the area you want to display; otherwise, the user may not see the area completely.
The X coordinate of the top left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin).
The Y coordinate of the top left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin).
The width of the view rectangle.
Do not set this property to a value smaller than the width of the area you want to display; otherwise, the user may not see the area completely.
An array of React.ComponentType
objects, which is used to package the whiteboard view. The default value is [].
The user ID of the event trigger.
The version of Akko.
The default hotkeys.
Keys | Action |
---|---|
Backspace or Delete | Delete the selected object |
Shift | Resize proportionately |
Ctrl + Z or Command + Z | Undo |
Ctrl + Y or Command + Y | Redo |
Ctrl + C or Command + C | Copy |
Ctrl + V or Command + V | Paste |
The Consumer for a Displayer
object.
The Consumer for a Room
object.
The version of the current SDK in the string format. For example, "2.12.11"
.
Resizes the viewable area proportionately until its shorter sides meet with the screen sides perpendicular to them, so that the viewable area completely covers the screen.
The actual scale factor.
Resizes the viewable area proportionately until its shorter sides meet with the screen sides perpendicular to them, so that the viewable area completely covers the screen. Then, resizes the viewable area by the specified scale factor.
The specified scale factor.
The actual scale factor.
Resizes the viewable area proportionately until its longer sides meet with the screen sides perpendicular to them, so that the viewable area is completely displayed on the screen.
The actual scale factor.
Resizes the viewable area proportionately until its longer sides meet with the screen sides perpendicular to them, so that the viewable area is completely displayed on the screen. Then, resizes the viewable area by the specified scale factor.
The specified scale factor.
The actual scale factor.
Resizes the viewable area proportionately until its longer sides meet with the screen sides perpendicular to them, so that the viewable area is completely displayed on the screen. Then, adds the specified spaces around the viewable area.
The specified spaces in pixels.
The actual scale factor.
Resizes the viewable area by the specified scale factor.
The specified scale factor.
The actual scale factor.
Creates a PPTTask
object.
After the app server starts a file-conversion task, the app client can create
a PPTTask
object by calling this function and passing in the Task Token and
Task UUID obtained from the app server. You can get the progress and result of
the file-conversion task through the callbacks for the PPTTask
object.
Parameters of the PPTTask
object.
The created PPTTask
object.
Creates a plugin.
The plugin to be created.
Adds a custom icon.
The custom icon.
Determines whether the Displayer
object is a Room
object.
The Displayer
object.
Whether the Displayer
object is a Room
object:
true
: The Displayer
object is a Room
object.false
: The Displayer
object is not a Room
object.Previews the PowerPoint (PPT) file.
This function creates a new page for PPT preview, which is separate from the whiteboard page.
The response for querying the progress of PPT file conversion. See ConversionResponse.
An empty HTML container.
Configurations of the preview page. See PreviewConfig.
Whether to request the resources of the next slide in advance:
Custom fonts. See UserFonts.
PPT preview logs. Reserved for future use.
Other parameters related to PPT preview. See PptParams.
Events.
The EventEmitter object.
Sets the load mode of asynchronous modules.
The load mode of asynchronous modules. See AsyncModuleLoadMode.
The view state of the local user, including the user information of the host (if any) in the room.