pub unsafe extern "C" fn OH_Input_SetCustomCursor(
windowId: i32,
customCursor: *mut Input_CustomCursor,
cursorConfig: *mut Input_CursorConfig,
) -> Input_ResultAvailable on crate feature
api-22 only.Expand description
Sets the custom cursor style.
§Arguments
-
windowId- Window ID. The value is an integer greater than or equal to 0. -
customCursor- Pointer to anInput_CustomCursorobject. -
cursorConfig- Pointer to an [cursorConfig] object.
§Returns
- OH_Input_SetCustomCursor function result code.
[
INPUT_SUCCESS] if the operation is successful; [INPUT_PARAMETER_ERROR] if window ID is abnormal or customCursor is invalid; [INPUT_INVALID_WINDOWID] if window ID is invaild. [INPUT_DEVICE_NOT_SUPPORTED] Capability not supported. [INPUT_SERVICE_EXCEPTION] if the service is exception.
Available since API-level: 22