Agora Interactive Whiteboard Java API Reference
|
Public Member Functions | |
void | throwError (Object args) |
String | urlInterrupter (String sourceUrl) |
void | onPPTMediaPlay (Object args) |
void | onPPTMediaPause () |
void | onMessage (JSONObject message) |
void | sdkSetupFail (SDKError error) |
Public Member Functions inherited from com.herewhite.sdk.CommonCallback | |
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 default (empty) implementation of the CommonCallbacks
interface. See CommonCallbacks
.
void com.herewhite.sdk.AbstractCommonCallbacks.throwError | ( | Object | args | ) |
Reports an uncaught global error during SDK runtime.
args | Error message. |
Implements com.herewhite.sdk.CommonCallback.
String com.herewhite.sdk.AbstractCommonCallbacks.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. |
Implements com.herewhite.sdk.CommonCallback.
void com.herewhite.sdk.AbstractCommonCallbacks.onPPTMediaPlay | ( | Object | args | ) |
Occurs when the audio and video in dynamic PPT slides start playing.
void com.herewhite.sdk.AbstractCommonCallbacks.onPPTMediaPause | ( | ) |
Occurs when the audio and video in dynamic PPT slides pause playing.
Implements com.herewhite.sdk.CommonCallback.
void com.herewhite.sdk.AbstractCommonCallbacks.onMessage | ( | JSONObject | message | ) |
Occurs when the user receives the 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).
message | Message in JSON format. Only when the message is in JSON format can the local user receive it. |
Implements com.herewhite.sdk.CommonCallback.
void com.herewhite.sdk.AbstractCommonCallbacks.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:
Implements com.herewhite.sdk.CommonCallback.