OH_ArkUI_UIInputEvent_GetDeviceId

Function OH_ArkUI_UIInputEvent_GetDeviceId 

Source
pub unsafe extern "C" fn OH_ArkUI_UIInputEvent_GetDeviceId(
    event: *const ArkUI_UIInputEvent,
) -> i32
Available on crate features api-12 and api-14 only.
Expand description

Obtains the ID of device that triggers UI input event.

§Arguments

  • event - Pointer to an ArkUI_UIInputEvent object.

§Returns

  • Returns the device ID.

Available since API-level: 14