diff --git a/en/application-dev/ui/arkts-common-components-xcomponent.md b/en/application-dev/ui/arkts-common-components-xcomponent.md index b6bdb5633f2275fda550f7ae2c6c7f75ed420d0f..95d8f30eb1802159a76389f56519d44ef75b5261 100644 --- a/en/application-dev/ui/arkts-common-components-xcomponent.md +++ b/en/application-dev/ui/arkts-common-components-xcomponent.md @@ -205,15 +205,15 @@ XComponent({ id: 'xcomponentId1', type: 'surface', libraryname: 'nativerender' } > While this mode also uses the NAPI mechanism as the **import** mode, it enables you to use the NDK APIs of the **\**, by having the **NativeXComponent** instance of the **\** exposed to the native layer of the application when the dynamic library is loaded. - **onLoad** event - - Trigger time: when the surface of the **\** is prepared. + - Trigger time: when the surface of the **\** is ready. - **context** parameter: where the native API exposed on the module is mounted. Its usage is similar to the usage of the **context2** instance obtained after the module is directly loaded using **import context2 from "libnativerender.so"**. - - Time sequence: When the **onLoad** event is subject to the surface. The following figure shows the time sequence of the **onLoad** event and the **OnSurfaceCreated** event on the native side. + - Time sequence: subject to the surface. The figure below shows the time sequence of the **onLoad** event and the **OnSurfaceCreated** event at the native layer. ![onLoad](figures/onLoad.png) - **onDestroy** event - Trigger time: when the **\** is destroyed, in the same manner as that when an ArkUI component is destroyed. The following figure shows the time sequence of the **onDestroy** event and the **OnSurfaceDestroyed** event on the native side. + Trigger time: when the **\** is destroyed, in the same manner as that when an ArkUI component is destroyed. The figure below shows the time sequence of the **onDestroy** event and the **OnSurfaceDestroyed** event at the native layer. ![onDestroy](figures/onDestroy.png) @@ -222,7 +222,7 @@ XComponent({ id: 'xcomponentId1', type: 'surface', libraryname: 'nativerender' } The surface held by the **\** complies with the producer-consumer model. -In OpenHarmony, components that comply with the producer design, such as the camera and video player, can write data to the surface held by the **\** and display the data through the **\**. +In OpenHarmony, components that comply with the producer design, such as the Camera and AVPlayer components, can write data to the surface held by the **\** and display the data through the **\**. ![picture-1](figures/picture-1.png) diff --git a/en/application-dev/ui/figures/picture-1.png b/en/application-dev/ui/figures/picture-1.png index 85e91bba345c1b0012d0c6f031baa7ee43ef867a..427fcdf017b7eaa1e8db8edaa4554f7b796cccf2 100644 Binary files a/en/application-dev/ui/figures/picture-1.png and b/en/application-dev/ui/figures/picture-1.png differ