XComponent
Can be used for EGL/OpenGLES and media data writing, and display in XComponent components.
parameter name | Parameter Type | required | describe |
---|---|---|---|
id | string | yes | The unique identifier of the component, which supports a maximum string length of 128. |
type | string | yes | It is used to specify the XComponent component type, and the optional values are: - "surface": used for EGL/OpenGLES and media data writing, the component content is sent to the display separately, and directly synthesized to the screen. -"component"9+: XComponent will be turned into a container component in which non-UI logic can be performed to dynamically load display content. |
libraryname | string | no | Compile and output the name of the dynamic library using the Native layer, which is only valid when the XComponent type is "surface". |
controller | XComponentcontroller | no | Bind a controller to the component, and call the component method through the controller, which is only valid when the XComponent type is "surface". |