Agora Interactive Whiteboard Java API Reference
|
Public Member Functions | |
default void | throwError (Object args) |
default String | urlInterrupter (String sourceUrl) |
default void | onPPTMediaPlay () |
default void | onPPTMediaPause () |
default void | onMessage (JSONObject object) |
default void | sdkSetupFail (SDKError error) |
default void | onLogger (JSONObject object) |
The RoomCallbacks
interface, which the SDK uses to send callback event notifications to the application.
The Room
instance can inherit the methods of this interface.
default void com.herewhite.sdk.CommonCallback.throwError | ( | Object | args | ) |
Reports an uncaught global error during SDK runtime.
args | Error message. |
Implemented in com.herewhite.sdk.AbstractCommonCallbacks.
default String com.herewhite.sdk.CommonCallback.urlInterrupter | ( | String | sourceUrl | ) |
Occurs when the SDK intercepts an image URL address.
By default, this callback is disabled. You can enable it by calling setEnableInterrupterAPI
(true) when initializing the WhiteSdk
instance. Once this callback is enabled and users insert an image into the whiteboard scene, the SDK triggers this callback, which reports the original URL address of the image. You can replace the original URL address with a specified URL address in this callback.
sourceUrl | The original URL address of an image. |
Implemented in com.herewhite.sdk.AbstractCommonCallbacks.
default void com.herewhite.sdk.CommonCallback.onPPTMediaPlay | ( | ) |
Occurs when the audio and video in dynamic PPT slides start playing.
default void com.herewhite.sdk.CommonCallback.onPPTMediaPause | ( | ) |
Occurs when the audio and video in dynamic PPT slides pause playing.
Implemented in com.herewhite.sdk.AbstractCommonCallbacks.
default void com.herewhite.sdk.CommonCallback.onMessage | ( | JSONObject | object | ) |
Occurs when the user receives a message from the web page.
The SDK triggers the callback when the local user receives a message sent by a web page (such as the iframe plug-in and PPTX).
object | Message in JSON format. Only when the message is in JSON format can the local user receive it. |
Implemented in com.herewhite.sdk.AbstractCommonCallbacks.
default void com.herewhite.sdk.CommonCallback.sdkSetupFail | ( | SDKError | error | ) |
Reports the failure of the SDK initialization.
You must initialize a WhiteSdk
instance before calling any other APIs. You can try reinitializing the SDK.
The SDK initialization failure may be due to the following reasons:
error | Error message. |
Implemented in com.herewhite.sdk.AbstractCommonCallbacks.
default void com.herewhite.sdk.CommonCallback.onLogger | ( | JSONObject | object | ) |
Gets the local debug logs output by the SDK.
After you successfully call setLog
(true), the SDK triggers this callback to send you the local debug logs.
If you need to disable this callback, call setLog(false)
.
setLog(false)
, the SDK stops sending you the local debug logs through this callback, but still triggers this callback to send the logs related to video-js-plugin
.object | Log messages in JSON object format. Each log message contains the following keys:
|
For example, {"funName": "joinRoom", "params": {"isWritable": 1, "region": "us-sv"}}.