Location
public struct Location
extension Device.Location: CustomStringConvertible
Location of a Device
.
The LIFX Application allows users to organise each bulb by giving it a Group
and a Location
. Most users use
groups to represent a room, and location to represent a property (such as a house or office) but this does
not need to be the case. These Group
and Location
are stored on the bulbs themselves, and are designed so
that they can be modified or renamed as long as one of the bulbs in the affected group is powered on.
-
Unique ID of a
Location
.When determining what locations are available given the data from all the bulbs your app can see each unique id should be considered a separate location.
Declaration
Swift
public let id: Identifier
-
Text label for
Location
.Declaration
Swift
public let label: String
-
Timestamp of last label update (UTC timestamp in nanoseconds).
Declaration
Swift
public let updatedAt: UInt64
-
Declaration
Swift
public var description: String { get }