activate(delegate:)
Activate a newly created virtual device to begin receiving notifications and enable functionality.
Declaration
func activate(delegate: any HIDVirtualDeviceDelegate)Parameters
- delegate:
The Hidvirtualdevicedelegate that receives incoming set/get report requests. Only one delegate is associated with the device, but many devices can be associated with the delegate.
Discussion
Many functions won’t run, and notifications won’t be received using the HIDVirtualDeviceDelegate until activate has run successfully. A device cannot be activated twice.