pub unsafe extern "C" fn OH_ArkUI_XComponent_StartImageAnalyzer(
node: ArkUI_NodeHandle,
userData: *mut c_void,
callback: Option<unsafe extern "C" fn(node: ArkUI_NodeHandle, statusCode: ArkUI_XComponent_ImageAnalyzerState, userData: *mut c_void)>,
) -> i32Available on crate feature
api-18 only.Expand description
Start image analyzer for the specified XComponent instance created by the native API.
§Arguments
-
node- Indicates the pointer to the XComponent instance created by the native API. -
userData- Indicates the pointer to a user defined data. -
callback- Indicates the pointer to a image analyzer status callback function.
§Returns
- Returns the status code of the execution.
[
ARKUI_ERROR_CODE_NO_ERROR] the execution is successful.
[ARKUI_ERROR_CODE_PARAM_INVALID] component is nullptr or callback is nullptr,
or the type of node is not XComponent.
Available since API-level: 18