Agora Interactive Whiteboard Java API Reference
|
Public Member Functions | |
Boolean | getDisconnectedBySelf () |
Boolean | getWritable () |
Long | getObserverId () |
void | setGlobalState (GlobalState globalState) |
void | setMemberState (MemberState memberState) |
void | copy () |
void | paste () |
void | duplicate () |
void | deleteOperation () |
void | disableSerialization (boolean disable) |
void | redo () |
void | undo () |
void | setViewMode (ViewMode viewMode) |
void | disconnect () |
void | disconnect (@Nullable final Promise< Object > promise) |
void | insertImage (ImageInformation imageInfo) |
void | completeImageUpload (String uuid, String url) |
void | insertImage (ImageInformationWithUrl imageInformationWithUrl) |
void | insertText (int x, int y, String text, Promise< String > promise) |
void | updateText (String id, String text) |
GlobalState | getGlobalState () |
void | getGlobalState (final Promise< GlobalState > promise) |
MemberState | getMemberState () |
void | getMemberState (final Promise< MemberState > promise) |
RoomMember[] | getRoomMembers () |
void | getRoomMembers (final Promise< RoomMember[]> promise) |
BroadcastState | getBroadcastState () |
void | getBroadcastState (final Promise< BroadcastState > promise) |
SceneState | getSceneState () |
void | getSceneState (final Promise< SceneState > promise) |
Scene[] | getScenes () |
void | getScenes (final Promise< Scene[]> promise) |
double | getZoomScale () |
void | getZoomScale (final Promise< Number > promise) |
RoomPhase | getRoomPhase () |
void | getRoomPhase (final Promise< RoomPhase > promise) |
RoomState | getRoomState () |
void | getRoomState (final Promise< RoomState > promise) |
void | setScenePath (String path) |
void | setScenePath (String path, final Promise< Boolean > promise) |
void | setSceneIndex (Integer index, @Nullable final Promise< Boolean > promise) |
void | putScenes (String dir, Scene[] scenes, int index) |
void | moveScene (String sourcePath, String targetDirOrPath) |
void | removeScenes (String dirOrPath) |
void | cleanScene (boolean retainPpt) |
void | pptNextStep () |
void | pptPreviousStep () |
void | removePage (@Nullable Promise< Boolean > promise) |
void | removePage (int index, @Nullable Promise< Boolean > promise) |
void | zoomChange (double scale) |
void | debugInfo (final Promise< JSONObject > promise) |
void | disableOperations (final boolean disableOperations) |
void | setWritable (final boolean writable, @Nullable final Promise< Boolean > promise) |
void | disableEraseImage (boolean disable) |
void | disableCameraTransform (final boolean disableCameraTransform) |
void | disableDeviceInputs (final boolean disableOperations) |
void | setTimeDelay (double delaySec) |
Double | getTimeDelay () |
void | syncBlockTimestamp (long utcMs) |
void | dispatchMagixEvent (AkkoEvent eventEntry) |
void | addApp (WindowAppParam appParam, Promise< String > promise) |
void | closeApp (String appId, Promise< Boolean > promise) |
void | focusApp (String appId) |
void | queryApp (String appId, Promise< WindowAppSyncAttrs > promise) |
void | queryAllApps (Promise< Map< String, WindowAppSyncAttrs > > promise) |
void | dispatchDocsEvent (WindowDocsEvent docsEvent, Promise< Boolean > promise) |
void | setSyncMode (boolean useSyncMode) |
boolean | isDisableInitialStateCallback () |
void | setDisableInitialStateCallback (boolean disableInitialStateCallback) |
Public Member Functions inherited from com.herewhite.sdk.Displayer | |
void | postIframeMessage (String string) |
void | postIframeMessage (WhiteObject object) |
void | getScenePathType (String path, final Promise< WhiteScenePathType > promise) |
void | getScene (String path, final Promise< Scene > promise) |
void | getEntireScenes (final Promise< Map< String, Scene[]> > promise) |
void | refreshViewSize () |
void | scaleIframeToFit () |
void | scalePptToFit () |
void | scalePptToFit (AnimationMode mode) |
void | addMagixEventListener (String eventName, EventListener eventListener) |
void | addHighFrequencyEventListener (String eventName, FrequencyEventListener eventListener, Integer fireInterval) |
void | removeMagixEventListener (String eventName) |
void | convertToPointInWorld (double x, double y, final Promise< Point > promise) |
void | setCameraBound (CameraBound bound) |
void | setBackgroundColor (@ColorInt int intColor) |
int | getBackgroundColor () |
void | getScenePreviewImage (String scenePath, final Promise< Bitmap > promise) |
void | getSceneSnapshotImage (String scenePath, final Promise< Bitmap > promise) |
void | disableCameraTransform (Boolean disable) |
void | moveCamera (CameraConfig camera) |
void | moveCameraToContainer (RectangleConfig rectangle) |
Additional Inherited Members | |
Protected Member Functions inherited from com.herewhite.sdk.Displayer | |
void | post (Runnable runnable) |
Protected Attributes inherited from com.herewhite.sdk.Displayer | |
final JsBridgeInterface | bridge |
String | uuid |
int | densityDpi |
Static Protected Attributes inherited from com.herewhite.sdk.Displayer | |
static final Gson | gson = new Gson() |
The Room
class, which provides methods to operate a live Interactive Whiteboard room.
Boolean com.herewhite.sdk.Room.getDisconnectedBySelf | ( | ) |
Gets whether the SDK calls disconnect
to disconnect from the live Interactive Whiteboard room.
This method can prevent the SDK from reconnecting to the room repeatedly.
Boolean com.herewhite.sdk.Room.getWritable | ( | ) |
Gets whether the local user is in interactive mode in the room.
true
: In interactive mode. The user has read and write permissions on the whiteboard.false
: In subscription mode. The user has read-only access to the whiteboard. Long com.herewhite.sdk.Room.getObserverId | ( | ) |
Gets the user ID of the local user.
void com.herewhite.sdk.Room.setGlobalState | ( | GlobalState | globalState | ) |
Modifies the globalState
object of the live Interactive Whiteboard room.
The globalState
object of the live Interactive Whiteboard room 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.
globalState | The global public state the room. See GlobalState . |
void com.herewhite.sdk.Room.setMemberState | ( | MemberState | memberState | ) |
Modifies the state of the whiteboard tool currently in use.
A successful call of this method updates the MemberState
of the room immediately.
You can call getMemberState
to get the latest MemberState
.
memberState | The state of the whiteboard tool. See MemberState . |
void com.herewhite.sdk.Room.copy | ( | ) |
Copies the selected content.
This method stores the selected content to the memory, but does not paste it to the whiteboard.
disableSerialization
as false
. void com.herewhite.sdk.Room.paste | ( | ) |
Pastes the copied content.
This method pastes the content copied by the copy
method into the user view on the whiteboard.
disableSerialization
as false
.void com.herewhite.sdk.Room.duplicate | ( | ) |
Duplicates the selected content.
This method copies and pastes the selected content copied into the user view on the whiteboard.
disableSerialization
as false
.void com.herewhite.sdk.Room.deleteOperation | ( | ) |
Deletes the selected content.
void com.herewhite.sdk.Room.disableSerialization | ( | boolean | disable | ) |
Disables/Enables the local serialization.
The following methods cannot take effect after the setting of disableSerialization(true)
:
redo
undo
duplicate
copy
paste
disableSerialization
as false
, ensure that every user in the room uses one of the following SDKs; otherwise, the application may crash:disable | Whether to disable the local serialization:
|
void com.herewhite.sdk.Room.redo | ( | ) |
Redoes an undone action.
disableSerialization
as false
. void com.herewhite.sdk.Room.undo | ( | ) |
Undoes an action.
disableSerialization
as false
. void com.herewhite.sdk.Room.setViewMode | ( | ViewMode | viewMode | ) |
Set the view modes of the user.
In the live Interactive Whiteboard room, you can set one of the following view modes for a user:
Broadcaster
: Host mode.Follower
: Follower mode.Freedom
: (Default) Freedom mode.Freedom
view mode by default.Broadcaster
, the view mode of every other user in the room (including users that join subsequently) is automatically set as 'Follower'.Follower
view mode operates the whiteboard, their view mode automatically switches to Freedom
mode. If needed, you can call disableOperations
(true) to disable the user from operating the whiteboard, so as to lock their view mode.This method call is asynchronous. After calling this method, you can call the getBroadcastState
[2/2] method to get the latest view mode of the user.
viewMode | The view mode of the user. See ViewMode . |
void com.herewhite.sdk.Room.disconnect | ( | ) |
Disconnects from the live Interactive Whiteboard room.
A successful call of this method allows the user to leave the room and releases all resources related to the room. The user that has left the room must call joinRoom
[1/2] or joinRoom
[2/2] again to join the room.
disconnect
[2/2] instead. void com.herewhite.sdk.Room.disconnect | ( | @Nullable final Promise< Object > | promise | ) |
Disconnects from the live Interactive Whiteboard room.
A successful call of this method allows the user to leave the room and releases all resources related to the room. The user that has left the room must call joinRoom
[1/2] or joinRoom
[2/2] again to join the room.
You can pass in an instance of the Promise<Object>
interface to get the call result of this method.
promise | The Promise<Object> interface instance. See Promise . You can get the call result of disconnect through this interface:
|
void com.herewhite.sdk.Room.insertImage | ( | ImageInformation | imageInfo | ) |
Inserts an image placeholder on the whiteboard.
The method sets up and inserts an image placeholder on the whiteboard per imageInfo
you pass in. You also need to call completeImageUpload
to pass in the URL address of the image to insert and display the image in the placeholder.
insertImage
to pass in the image information and URL address at the same time.imageInfo | The image information. See ImageInformation . |
void com.herewhite.sdk.Room.completeImageUpload | ( | String | uuid, |
String | url | ||
) |
Displays an image in the specified image placeholder.
The method inserts and displays an image in the specified image placeholder.
insertImage
to insert an image placeholder on the whiteboard.uuid | The unique identifier of the image, which is the image UUID that you pass in ImageInformation of the insertImage method. |
url | The URL address of the image. Ensure the application client can access the URL; otherwise, the image cannot be displayed. |
void com.herewhite.sdk.Room.insertImage | ( | ImageInformationWithUrl | imageInformationWithUrl | ) |
Inserts and displays an image on the whiteboard.
This method wraps the insertImage
and completeImageUpload
methods. You can pass in the image information and URL address at the same time in this method to directly insert and display the image on the whiteboard.
imageInformationWithUrl | The information and the URL address of the image. See ImageInformationWithUrl 。 |
void com.herewhite.sdk.Room.insertText | ( | int | x, |
int | y, | ||
String | text, | ||
Promise< String > | promise | ||
) |
Inserts text at a specified position.
x | The X coordinate of the midpoint of the left edge of the first character in the world coordinate system. |
y | The Y coordinate of the midpoint of the left edge of the first character in the world coordinate system. |
text | The initial text. If you do not pass in a value, the content is empty. |
promise | The Promise<String> interface instance. See Promise . You can get the call result of this method through this interface:
|
void com.herewhite.sdk.Room.updateText | ( | String | id, |
String | text | ||
) |
Updates the content of the specified text.
id | The text identifier, which is the callback value of the insertText method. |
text | The text content. |
GlobalState com.herewhite.sdk.Room.getGlobalState | ( | ) |
Gets the global state of the room.
GlobalState
set by the setCustomGlobalStateClass
method.setGlobalState
method.GlobalState
. void com.herewhite.sdk.Room.getGlobalState | ( | final Promise< GlobalState > | promise | ) |
Gets the global state of the room.
getGlobalState
[1/2] instead.GlobalState
set by the setCustomGlobalStateClass
method.promise | The Promise<GlobalState> interface instance. See Promise . You can get the call result of getGlobalState through this interface:
|
MemberState com.herewhite.sdk.Room.getMemberState | ( | ) |
Gets the state of the whiteboard tool currently in use.
MemberState
immediately after calling the setMemberState
method.MemberState
. void com.herewhite.sdk.Room.getMemberState | ( | final Promise< MemberState > | promise | ) |
Gets the state of the whiteboard tool currently in use.
promise | The Promise<MemberState> interface instance. See Promise . You can get the call result of getMemberState through this interface:
|
RoomMember[] com.herewhite.sdk.Room.getRoomMembers | ( | ) |
Gets the list of members in the room.
RoomMember
. void com.herewhite.sdk.Room.getRoomMembers | ( | final Promise< RoomMember[]> | promise | ) |
Gets the list of members in the room.
promise | ThePromise<RoomMember[]> interface instance. SeePromise . You can get the call result of getRoomMembers through this interface:
|
BroadcastState com.herewhite.sdk.Room.getBroadcastState | ( | ) |
Gets the view state of the user.
setViewMode
. In this case, use getBroadcastState
[2/2] instead.BroadcastState
. void com.herewhite.sdk.Room.getBroadcastState | ( | final Promise< BroadcastState > | promise | ) |
Gets the view state of the user.
getBroadcastState
[1/2] immediately after calling setViewMode
. In this case, use this method instead.promise | The Promise<BroadcastState> interface instance. See Promise . You can get the call result of getBroadcastState through this interface:
|
SceneState com.herewhite.sdk.Room.getSceneState | ( | ) |
Gets the state of the scenes under the current scene directory.
getSceneState
[1/2] immediately after calling the following methods:
In ths case, use getSceneState
[2/2] instead.
SceneState
. void com.herewhite.sdk.Room.getSceneState | ( | final Promise< SceneState > | promise | ) |
Gets the state of the scenes under the current scene directory.
getSceneState
[1/2] immediately after calling the following methods:setScenePath
[1/2]setScenePath
[2/2]putScenes
In ths case, use getSceneState
[2/2] instead.promise | The Promise<SceneState> interface instance. See Promise . You can get the call result of getSceneState through this interface:
|
Scene[] com.herewhite.sdk.Room.getScenes | ( | ) |
Gets the list of scenes under the current scene directory.
getScenes
[1/2] after calling the following methods:setScenePath
[1/2]setScenePath
[2/2]putScenes
In this case, you can use getScenes
instead.Scene
. Gets the list of scenes under the current scene directory.
getScenes
[1/2] after calling the following methods:setScenePath
[1/2]setScenePath
[2/2]putScenes
In this case, you can use getScenes
instead.double com.herewhite.sdk.Room.getZoomScale | ( | ) |
Gets the scale of the view.
getZoomScale
[1/2] immediately after calling zoomChange
or moveCamera
. In this case, you can use getZoomScale
[2/2] instead.void com.herewhite.sdk.Room.getZoomScale | ( | final Promise< Number > | promise | ) |
Gets the scale of the view.
getZoomScale
[1/2] immediately after calling zoomChange
or moveCamera
. In this case, you can use getZoomScale
[2/2] instead.promise | The Promise<Number> interface instance. See Promise . You can get the call result of getZoomScale through this interface:
|
RoomPhase com.herewhite.sdk.Room.getRoomPhase | ( | ) |
Gets the connection state of the room.
getRoomPhase
[1/2] immediately after calling disconnect
[1/2] or disconnect
[2/2]. In this case, you can use getRoomPhase
[2/2] instead.RoomPhase
. Gets the connection state of the room.
getRoomPhase
[1/2] immediately after calling disconnect
[1/2] or disconnect
[2/2]. In this case, you can use getRoomPhase
[2/2] instead.RoomState com.herewhite.sdk.Room.getRoomState | ( | ) |
Gets the current room state.
getRoomState
[1/2] immediately after modifying the RoomState
variables. In this case, you can user getRoomState
[2/2] instead.RoomState
. Gets the current room state.
getRoomState
[1/2] immediately after modifying the RoomState
variables. In this case, you can user getRoomState
[2/2] instead.void com.herewhite.sdk.Room.setScenePath | ( | String | path | ) |
Switches to the specified scene.
A successful call of this method switches the whiteboard scene to the specified scene.
setScenePath
[2/2] instead.The scene switch may fail due to the following reasons:
/
and consists of the scene directory and scene name.path | The path of the scene that you want to switch to. Ensure the scene path stars with / and consists of the scene directory and scene name. For example, /math/classA . |
void com.herewhite.sdk.Room.setScenePath | ( | String | path, |
final Promise< Boolean > | promise | ||
) |
Switches to the specified scene.
A successful call of this method switches the whiteboard scene to the specified scene.
The scene switch may fail due to the following reasons:
/
and consists of the scene directory and scene name.path | The path of the scene that you want to switch to,Ensure the scene path stars with / and consists of the scene directory and scene name. For example, /math/classA . |
promise | The Promise<Boolean> interface instance. See Promise . You can get the call result of setScenePath through this interface:
|
void com.herewhite.sdk.Room.setSceneIndex | ( | Integer | index, |
@Nullable final Promise< Boolean > | promise | ||
) |
Switches to the specified scene under the current scene directory.
A successful call of this method switches the whiteboard scene to the specified scene.
index | The index of the target scene in the current scene directory. |
promise | The Promise<Boolean> interface instance. See Promise . You can get the call result of setSceneIndex through this interface:
|
void com.herewhite.sdk.Room.putScenes | ( | String | dir, |
Scene[] | scenes, | ||
int | index | ||
) |
Inserts multiples scenes under the specified scene directory.
setScenePath(
to switch to one of the newly inserted scenes.dir | The path of the scene directory, which must starts with / and cannot be the path of a scene. For example, "/math" . |
scenes | An array of scenes. For the files of a single scene, see Scene . |
index | The index of the first scene to be inserted. The index of scene under a scene directory can start from 0. If the index is greater than the total number of existing scenes under the scene directory, the new scene is put after the last scene. |
Example
room.putScenes("ppt", new Scene[]{new Scene("page1", new PptPage("https://white-pan.oss-cn-shanghai.aliyuncs.com/101/image/alin-rusu-1239275-unsplash_opt.jpg", 1024d, 768d))}, 0);
room.setScenePath("ppt" + "/page1");
void com.herewhite.sdk.Room.moveScene | ( | String | sourcePath, |
String | targetDirOrPath | ||
) |
Moves a scene.
After a scene is moved, the path of the scene changes.
sourcePath
parameter.targetDirOrPath
parameter.sourcePath | The original path of the scene to be moved. It cannot be the path of a scene directory. |
targetDirOrPath | The path of the target scene directory or the target path of the scene under the current directory:
|
void com.herewhite.sdk.Room.removeScenes | ( | String | dirOrPath | ) |
Deletes a scene or a scene directory.
/init
.dirA
, the SDK executes upward recursive logic to locate the new scene:dirB
,the SDK switches the whiteboard scene to the first scene under dirB
(with the index of 0).dirC
, before the deleted dirA
, then the SDK switches the whiteboard scene to the first scene under dirC
(with the index of 0). The SDK continues executing upward recursive logic until a new scene is found.dirOrPath | The path of a scene or a scene directory. If you pass in the path of a scene directory, this method deletes all scenes under the directory. |
void com.herewhite.sdk.Room.cleanScene | ( | boolean | retainPpt | ) |
Clears all contents on the current scene.
retainPpt | Whether to retain the PPT slide:
|
void com.herewhite.sdk.Room.pptNextStep | ( | ) |
Plays the next slide of the PPT file.
When the current PPT slide finishes playing, the SDK switches to the next scene to play the next PPT slide.
void com.herewhite.sdk.Room.pptPreviousStep | ( | ) |
Returns to the previous slide of the PPT file.
When the current PPT slide is rolled back, the SDK switches back to the previous scene to play the previous PPT slide.
void com.herewhite.sdk.Room.removePage | ( | @Nullable Promise< Boolean > | promise | ) |
Removes the current page. When in multi-window mode, removes the current page of the main whiteboard scene.
void com.herewhite.sdk.Room.removePage | ( | int | index, |
@Nullable Promise< Boolean > | promise | ||
) |
Removes the current page. When in multi-window mode, removes the current page of the main whiteboard scene.
index | The index number of the specified page. |
void com.herewhite.sdk.Room.zoomChange | ( | double | scale | ) |
Sets the scale of the view.
moveCamera
instead.scale | The scale of the view. |
void com.herewhite.sdk.Room.debugInfo | ( | final Promise< JSONObject > | promise | ) |
Gets debug logs.
promise | The Promise<JSONObject> interface instance. See Promise . You can get the call result of debugInfo through this interface:
|
void com.herewhite.sdk.Room.disableOperations | ( | final boolean | disableOperations | ) |
Disables the whiteboard from responding to users' operations.
This method disables the whiteboard from responding to the following operations of users:
CameraTransform
: Adjusting the view of the whiteboard, including moving and zooming the view.DeviceInputs
: Using the whiteboard tool.disableOperations | Whether to disable the whiteboard from responding to users' operations:
|
void com.herewhite.sdk.Room.setWritable | ( | final boolean | writable, |
@Nullable final Promise< Boolean > | promise | ||
) |
Sets whether a user is in interactive mode in the room.
Users in the live Interactive Whiteboard room can be in one of the following modes
writable | Whether the user is in interactive mode:
|
promise | The Promise<Boolean> interface instance. See Promise . You can get the call result of setWritable through this interface:
|
void com.herewhite.sdk.Room.disableEraseImage | ( | boolean | disable | ) |
Disables the eraser from erasing images on the whiteboard.
disable | Whether to disable the eraser from erasing images on the whiteboard:
|
void com.herewhite.sdk.Room.disableCameraTransform | ( | final boolean | disableCameraTransform | ) |
Disables the local user from adjusting the view of the whiteboard, including moving and zooming the view.
disableCameraTransform | Whether to disable the local user from adjusting the view of the whiteboard:
|
void com.herewhite.sdk.Room.disableDeviceInputs | ( | final boolean | disableOperations | ) |
Disables the whiteboard tools from responding to users' inputs.
disableOperations | Whether to disable the whiteboard tools from responding to users' inputs:
|
void com.herewhite.sdk.Room.setTimeDelay | ( | double | delaySec | ) |
Sets the delay time (s) for displaying remote whiteboard contents on the local client.
After you set this parameter, when the local user receives the remote whiteboard contents, the SDK delays displaying the contents based on the value of timeDelay
.
In scenarios with significant audio and video transmission delays, for example, when using a CDN to distribute audio and video streams, you can use this parameter to delay displaying the received remote whiteboard contents, so as to ensure that the whiteboard contents and the audio and video streams are synchronized.
delaySec | The delay time in seconds, which must be equal to or greater than 0. The default value is 0. |
Double com.herewhite.sdk.Room.getTimeDelay | ( | ) |
Gets the delay time (s) for displaying remote whiteboard contents on the local client.
void com.herewhite.sdk.Room.syncBlockTimestamp | ( | long | utcMs | ) |
Sets the Unix timestamp (ms) for displaying remote whiteboard contents on the local client.
After you call this method, the SDK displays the received remote whiteboard contents based on the value of timestamp
you set in this method.
In scenarios where users subscribe to audio and video streams and whiteboard contents at the same time, you can obtain time information from the SEI frame attached to the audio and video streams, and call this method to set the local display time for the remote whiteboard contents, so as to ensure audio and video streams and the whiteboard contents are synchronized in real time.
utcMs | The Unix timestamp (ms) for displaying remote whiteboard contents on the local client. |
void com.herewhite.sdk.Room.dispatchMagixEvent | ( | AkkoEvent | eventEntry | ) |
Send a custom event.
eventEntry | The custom event. See AkkoEvent . |
void com.herewhite.sdk.Room.addApp | ( | WindowAppParam | appParam, |
Promise< String > | promise | ||
) |
Inserts a window app.
In multi-window mode, you can insert a PPT or custom plugin as a window app to display it in a new window.
appParam | The properties of the window app. See WindowAppParam . |
promise | The Promise<String> interface instance. See Promise . You can use this interface to get the result of calling addApp :
|
appId
will be nil
. void com.herewhite.sdk.Room.closeApp | ( | String | appId, |
Promise< Boolean > | promise | ||
) |
Closes the window of the specified window app.
This method is only valid in multi-window mode, and the callback will be triggered regardless of whether the app ID is valid or not.
appId | The window app ID. |
promise | The Promise<Boolean> interface instance. See Promise . You can use this interface to get the result of calling closeApp :
|
void com.herewhite.sdk.Room.focusApp | ( | String | appId | ) |
Switches the focused window to the window of the specified window app.
This method is only valid in multi-window mode.
appId | The window app ID. |
void com.herewhite.sdk.Room.queryApp | ( | String | appId, |
Promise< WindowAppSyncAttrs > | promise | ||
) |
Queries the information of the specified window app.
This method is only valid in multi-window mode.
appId | The window app ID. |
promise | The Promise<Object> interface instance. See Promise . You can use this interface to get the result of calling queryApp : |
WindowAppSyncAttrs
if the method call succeeds.void com.herewhite.sdk.Room.queryAllApps | ( | Promise< Map< String, WindowAppSyncAttrs > > | promise | ) |
Queries the information of all window apps.
This method is only valid in multi-window mode.
promise | The Promise<Object> interface instance. See Promise . You can use this interface to get the result of calling queryAllApps : |
WhiteAppSyncAttributes
if the method call succeeds.void com.herewhite.sdk.Room.dispatchDocsEvent | ( | WindowDocsEvent | docsEvent, |
Promise< Boolean > | promise | ||
) |
Dispatches a doc event.
docsEvent | The content of the doc event. See WindowDocsEvent . |
promise | The Promise<Boolean> interface instance. See Promise . You can use this interface to get the result of calling dispatchDocsEvent :
|
void com.herewhite.sdk.Room.setSyncMode | ( | boolean | useSyncMode | ) |
By default, all synchronization messages are processed at a relatively smooth pace to ensure a smooth user experience. If this option is set to true
, all messages will be processed immediately upon receipt, ensuring real-time synchronization.
useSyncMode | Whether to enable sync mode:
|
boolean com.herewhite.sdk.Room.isDisableInitialStateCallback | ( | ) |
Gets whether the initial state callback is disabled.
void com.herewhite.sdk.Room.setDisableInitialStateCallback | ( | boolean | disableInitialStateCallback | ) |
Disables the initial state callback.
disableInitialStateCallback |
|