OH_Input_GetDeviceAddress

Function OH_Input_GetDeviceAddress 

Source
pub unsafe extern "C" fn OH_Input_GetDeviceAddress(
    deviceInfo: *mut Input_DeviceInfo,
    address: *mut *mut c_char,
) -> Input_Result
Available on crate feature api-13 only.
Expand description

Obtains the physical address of an input device.

§Arguments

  • deviceInfo - information object. For details, see Input_DeviceInfo.

  • address - Pointer to the physical address of the input device.

§Returns

  • OH_Input_GetDeviceAddress result code, specifically, [INPUT_SUCCESS] if the operation is successful; [INPUT_PARAMETER_ERROR] if deviceInfo or address is a null pointer.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 13