pub unsafe extern "C" fn OH_ArkUI_DragEvent_GetModifierKeyStates(
event: *mut ArkUI_DragEvent,
keys: *mut u64,
) -> i32Available on crate feature
api-12 only.Expand description
Obtains the pressed status of modifier keys from a drag event.
§Arguments
-
event- Indicates the pointer to an ArkUI_DragEvent object. -
keys- [ArkUI_ModifierKeyName] Indicates the returned combination of modifier keys that are currently pressed. The application can determine the pressed modifier keys through bitwise operations.
§Returns
- Returns the result code.
Returns [
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.
Available since API-level: 12