Capability Object

Capability Object

A capability comprises attributes and commands for a driver. If a driver implements a capability, it tells the system what commands and attributes it supports to allow apps a standardized method of interacting with the device. The Capability object provides a way to programatically insepect properties.

For more information on capabilities themselves, see: Driver Capability List,

Properties

id

Long: A unique id for the capability.

name

String: The name of the capability.

reference

String: The reference for a capability. ie capability.refresh for the Refresh capability. This reference is used by App inputs to select devices.

attributes

List<Attribute>: A list of attributes supported by this capability.

commands

List<Command>: A list of commands supported by this capability.