Declaring the Right Device Capability
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 ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.