struct DeviceTypeMetadata
extension DeviceTypeMetadata : Equatable, Hashable, Sendable
Additional information about a device type.
-
Undocumented
Declaration
Swift
typealias Builder = ([any Trait]?) -> DeviceTypeMetadata
-
Whether this is the primary type for the device.
This conveys whether this is the primary functionality of the device. For example, a device that is both a light and a speaker would have
isPrimaryType
set totrue
for the light type, butfalse
for the speaker type.Declaration
Swift
let isPrimaryType: Bool
-
Aggregated connectivity information for this device type, based on the connectivity of its traits.
Declaration
Swift
let sourceConnectivity: SourceConnectivity
-
The ID of the object backing this device type.
Declaration
Swift
let objectID: String