pub unsafe extern "C" fn OH_Input_RequestInjection(
callback: Input_InjectAuthorizeCallback,
) -> Input_ResultAvailable on crate feature
api-20 only.Expand description
Requests for injection authorization.
§Arguments
callback- - callback used to return the result.
§Returns
- OH_Input_RequestInjection function result code.
[
INPUT_SUCCESS] Success.
[INPUT_PARAMETER_ERROR] The callback is NULL.
[INPUT_DEVICE_NOT_SUPPORTED] Capability not supported.
[INPUT_SERVICE_EXCEPTION] Service error.
[INPUT_INJECTION_AUTHORIZING] Authorizing.
[INPUT_INJECTION_OPERATION_FREQUENT] Too many operations.
[INPUT_INJECTION_AUTHORIZED] Authorized.
[INPUT_INJECTION_AUTHORIZED_OTHERS] Authorized to other applications.
Available since API-level: 20