OH_NativeXComponent_RegisterOnFrameCallback

Function OH_NativeXComponent_RegisterOnFrameCallback 

Source
pub unsafe extern "C" fn OH_NativeXComponent_RegisterOnFrameCallback(
    component: *mut OH_NativeXComponent,
    callback: Option<unsafe extern "C" fn(component: *mut OH_NativeXComponent, timestamp: u64, targetTimestamp: u64)>,
) -> i32
Available on crate feature api-11 only.
Expand description

Registers a callback for this OH_NativeXComponent instance.

§Arguments

  • component - Indicates the pointer to this OH_NativeXComponent instance.

  • callback - Indicates the pointer to a onFrame callback.

§Returns

  • Returns the status code of the execution.

Available since API-level: 11

Version: 1.0