OH_Input_GetDeviceIds

Function OH_Input_GetDeviceIds 

Source
pub unsafe extern "C" fn OH_Input_GetDeviceIds(
    deviceIds: *mut i32,
    inSize: i32,
    outSize: *mut i32,
) -> Input_Result
Available on crate feature api-13 only.
Expand description

Obtains the IDs of all input devices.

§Arguments

  • deviceIds - Array of input device IDs.

  • inSize - Size of the array of input device IDs.

  • outSize - Length of the list of input device IDs. The value cannot be greater than the value of inSize.

§Returns

  • OH_Input_GetDeviceIds result code, specifically, [INPUT_SUCCESS] if the operation is successful; [INPUT_PARAMETER_ERROR] if deviceIds or outSize is a null pointer or inSize is less than 0.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 13