# OH_NativeXComponent_Callback ## Overview Registers a callback for the surface lifecycle and touch event. **Since:** 8 **Related Modules:** [Native XComponent](_o_h___native_x_component.md) ## Summary ### Member Variables | Name | Description | | -------- | -------- | | [OnSurfaceCreated](_o_h___native_x_component.md#onsurfacecreated)| Invoked when a surface is created. | | [OnSurfaceChanged](_o_h___native_x_component.md#onsurfacechanged)| Invoked when the surface changes. | | [OnSurfaceDestroyed](_o_h___native_x_component.md#onsurfacedestroyed)| Invoked when the surface is destroyed. | | [DispatchTouchEvent](_o_h___native_x_component.md#dispatchtouchevent)| Invoked when a touch event is triggered. |