February 2015
Intermediate to advanced
768 pages
26h 24m
English
Declaring a device capability for a USB device is similar to declaring one for a Bluetooth device, except the m2:Function Type value is used to specify the device class:
<Capabilities> <m2:DeviceCapability Name="usb"> <m2:Device Id="device"> <m2:Function Type="deviceClass"/> </m2:Device> </m2:DeviceCapability> ... </Capabilities>
The device specification supports the vidpid format shown earlier, or it can be set to any. However, any is only supported for device classes that are narrow enough. (For example, it doesn’t make sense for an app to claim that it can communicate with any vendor-specific device.)
The deviceClass value supports three formats:
→ name:friendlyName ...
Read now
Unlock full access