DeviceIdentifier

public struct DeviceIdentifier : Codable, Equatable, Hashable
extension DeviceIdentifier: Fixture

A Nanoleaf device identifier.

  • Device name.

    Declaration

    Swift

    public var name: String
  • Device type.

    Declaration

    Swift

    public var type: String
  • Device domain.

    Declaration

    Swift

    public var domain: String

Initialization

  • Initialize a new DeviceIdentifier instance.

    Declaration

    Swift

    public init(
        name: String,
        type: String,
        domain: String
    )

    Parameters

    name

    The device’s name.

    type

    The device type.

    domain

    The device’s domain.

Fixture

  • Create a fixture.

    Declaration

    Swift

    public static func fixture(_ configure: ((inout `Self`) -> Void)? = nil) -> DeviceIdentifier

    Parameters

    configure

    A closure to configure the fixture.

    Return Value

    A Device instance.