pub extern "C-unwind" fn IOHIDRequestAccess(
request_type: IOHIDRequestType,
) -> boolAvailable on crate feature
hidsystem only.Expand description
Requests access from the user for a specific IOHIDRequestType.
Processes that wish to post events through the IOHIDPostEvent API, or receive reports through the IOHIDManager/IOHIDDevice API must be granted access first by the user. If you do not call this API, it will be called on your behalf when the API are used.
Parameter requestType: The request type defined in the IOHIDRequestType enumerator.
Returns: Returns true if access was granted.