IOHIDDeviceCopyValueMultipleWithCallback
Copies a values for multiple elements and returns status via a completion callback.
Declaration
IOReturn IOHIDDeviceCopyValueMultipleWithCallback(IOHIDDeviceRef device, CFArrayRef elements, CFDictionaryRef _Nullable *pMultiple, CFTimeInterval timeout, IOHIDValueMultipleCallback callback, void *context);Parameters
- device:
Reference to an IOHIDDevice.
- elements:
CFArrayRef containing multiple IOHIDElementRefs whose values are to be obtained.
- pMultiple:
Pointer to CFDictionaryRef where the keys are the provided elements and the values are the requested values.
- timeout:
CFTimeInterval containing the timeout.
- callback:
Pointer to a callback method of type IOHIDValueMultipleCallback.
- context:
Pointer to data to be passed to the callback.
Return Value
Returns kIOReturnSuccess if successful.
Discussion
This method behaves asynchronusly and is only relevent for either output or feature type elements.
See Also
Miscellaneous
IOHIDDeviceCloseIOHIDDeviceConformsToIOHIDDeviceCopyMatchingElementsIOHIDDeviceCopyValueMultipleIOHIDDeviceCreateIOHIDDeviceGetPropertyIOHIDDeviceGetReportIOHIDDeviceGetReportWithCallbackIOHIDDeviceGetServiceIOHIDDeviceGetTypeIDIOHIDDeviceGetValueIOHIDDeviceGetValueWithCallbackIOHIDDeviceOpenIOHIDDeviceRegisterInputReportCallbackIOHIDDeviceRegisterInputValueCallbackIOHIDDeviceRegisterRemovalCallbackIOHIDDeviceScheduleWithRunLoopIOHIDDeviceSetInputValueMatchingIOHIDDeviceSetInputValueMatchingMultipleIOHIDDeviceSetPropertyIOHIDDeviceSetReportIOHIDDeviceSetReportWithCallbackIOHIDDeviceSetValueIOHIDDeviceSetValueMultipleIOHIDDeviceSetValueMultipleWithCallbackIOHIDDeviceSetValueWithCallbackIOHIDDeviceUnscheduleFromRunLoop