Skip to main content

Device Capabilities

Hardware access (camera, microphone, USB devices, etc.) is declared separately as device capabilities, optionally with specific devices and functions.

PropertyTypeRequiredDescription
nameenumyesOne of: activity, bluetooth, humaninterfacedevice, location, lowLevel, microphone, optical, pointOfService, proximity, radios, serialcommunication, usb, webcam, wiFiControl.
devicesarray of MsixDevicenoSpecific devices, max 1000. Required by some capabilities (e.g., usb, humaninterfacedevice).

MsixDevice

PropertyTypeRequiredDescription
idstringyesDevice identifier (vendor / product ID for USB, etc.). Max 512 chars.
functionsarray of MsixDeviceFunction ({ "type": "..." })yes (non-empty, max 100)Functions exposed by the device.

Examples

Webcam access

"msix": {
"deviceCapabilities": [
{ "name": "webcam" }
]
}

Specific USB device with one function

"msix": {
"deviceCapabilities": [
{
"name": "usb",
"devices": [
{
"id": "vidpid:045E 02FE",
"functions": [
{ "type": "name:keyboard" }
]
}
]
}
]
}

Bluetooth + location

"msix": {
"deviceCapabilities": [
{ "name": "bluetooth" },
{ "name": "location" }
]
}