Agora Java API Reference for Android
|
Public Member Functions | |
Canvas (Rte rte, CanvasInitialConfig config) | |
long | getNativeHandle () |
void | addView (View view, ViewConfig viewConfig) throws RteException |
void | removeView (View view, ViewConfig viewConfig) throws RteException |
void | getConfigs (CanvasConfig config) throws RteException |
void | setConfigs (CanvasConfig config) throws RteException |
Protected Member Functions | |
void | finalize () |
Canvas interface, used to set the video rendering view.
io.agora.rte.Canvas.Canvas | ( | Rte | rte, |
CanvasInitialConfig | config | ||
) |
Construct a Canvas object.
rte | Rte object. |
config | CanvasInitialConfig initialization configuration object. Currently, a null pointer can be passed. |
void io.agora.rte.Canvas.addView | ( | View | view, |
ViewConfig | viewConfig | ||
) | throws RteException |
Add a rendering view. Currently, only one view is supported.
view | Pointer to the View object. On the Android platform, you can assign an SurfaceView object to a View type variable and pass it to the interface. |
config | View-related configuration. Currently, nullptr can be passed. |
RteException | RteException.errorCode() may return the following ErrorCode:
|
void io.agora.rte.Canvas.removeView | ( | View | view, |
ViewConfig | viewConfig | ||
) | throws RteException |
Remove a rendering view.
view | Pointer to the View object. |
config | View-related configuration. Currently, nullptr can be passed. |
RteException | RteException.errorCode() may return the following ErrorCode:
|
void io.agora.rte.Canvas.getConfigs | ( | CanvasConfig | config | ) | throws RteException |
Get the configuration of Canvas object.
config | CanvasConfig object |
RteException | RteException.errorCode() may return the following ErrorCode:
|
void io.agora.rte.Canvas.setConfigs | ( | CanvasConfig | config | ) | throws RteException |
Configure the Canvas object.
config | CanvasConfig object |
RteException | RteException.errorCode() may return the following ErrorCode:
|