Agora Java API Reference for Android
|
Public Member Functions | |
Rte (InitialConfig initialConfig) | |
synchronized void | destroy () throws RteException |
long | getNativeHandle () |
void | initMediaEngine (AsyncCallback callBack) throws RteException |
void | getConfigs (Config config) throws RteException |
void | setConfigs (Config config) throws RteException |
void | registerObserver (Observer observer) throws RteException |
void | unregisterObserver (Observer observer) throws RteException |
Static Public Member Functions | |
static synchronized Rte | getFromBridge () throws RteException |
Static Public Attributes | |
static final String | TAG = "Rte" |
Protected Member Functions | |
void | finalize () |
The Rte class, which is the basic interface of the Agora Real Time Engagement SDK.
|
static |
Create an Rte object from the rtc bridge. Used in scenarios where the rtc engine has already been initialized, which can save the operation of initializing the rte engine.
RteException | RteException.errorCode() may return the following ErrorCode:
|
synchronized void io.agora.rte.Rte.destroy | ( | ) | throws RteException |
Destroy the Rte object. The operation will release all resources used by the Rte object.
RteException | RteException.errorCode() may return the following ErrorCode:
|
void io.agora.rte.Rte.initMediaEngine | ( | AsyncCallback | callBack | ) | throws RteException |
Initialize the engine.
callBack | Asynchronous callback function that returns the result of engine initialization. |
error | Possible ErrorCode returns:
|
RteException | RteException.errorCode() may return the following ErrorCode:
|
void io.agora.rte.Rte.getConfigs | ( | Config | config | ) | throws RteException |
Get the configuration of Rte object.
config | The object used to get the rte config configuration. |
RteException | RteException.errorCode() may return the following ErrorCode:
|
void io.agora.rte.Rte.setConfigs | ( | Config | config | ) | throws RteException |
Configure the Rte object.
config | The object used to set the rte config configuration. |
RteException | RteException.errorCode() may return the following ErrorCode:
|
void io.agora.rte.Rte.registerObserver | ( | Observer | observer | ) | throws RteException |
Register an rte observer.
observer | The object that observes rte callback events. |
RteException | RteException.errorCode() may return the following ErrorCode:
|
void io.agora.rte.Rte.unregisterObserver | ( | Observer | observer | ) | throws RteException |
Unregister an rte observer.
observer | The object that observes rte callback events. |
RteException | RteException.errorCode() may return the following ErrorCode:
|