OH_ArkUI_SurfaceCallback_SetSurfaceChangedEvent

Function OH_ArkUI_SurfaceCallback_SetSurfaceChangedEvent 

Source
pub unsafe extern "C" fn OH_ArkUI_SurfaceCallback_SetSurfaceChangedEvent(
    callback: *mut OH_ArkUI_SurfaceCallback,
    onSurfaceChanged: Option<unsafe extern "C" fn(surfaceHolder: *mut OH_ArkUI_SurfaceHolder, width: u64, height: u64)>,
)
Available on crate feature api-19 only.
Expand description

Set the surface changed event of the surface callback.

ยงArguments

  • callback - Indicated the pointer to the surface callback.

  • onSurfaceChanged - Indicates the surface changed callback event which will called when the surface is changed.

Available since API-level: 19