Structures

The following structures are available globally.

  • Declaration

    Swift

    public struct Auth
    extension Auth: Codable
    extension Auth: Fixture
  • Declaration

    Swift

    public struct AnimationData
    extension AnimationData: Equatable
    extension AnimationData: Codable
    extension AnimationData: CustomStringConvertible
  • Declaration

    Swift

    public struct AnimationDataFrame
    extension AnimationDataFrame: Equatable
    extension AnimationDataFrame: CustomStringConvertible
  • Declaration

    Swift

    public struct Panel
    extension Panel: Equatable
    extension Panel: CustomStringConvertible
  • Declaration

    Swift

    public struct Effect
    extension Effect: Codable
  • Declaration

    Swift

    public struct PaletteColor
    extension PaletteColor: Codable
  • Declaration

    Swift

    public struct LayoutDetails
    extension LayoutDetails: Codable
    extension LayoutDetails: Equatable
    extension LayoutDetails: Fixture
  • Declaration

    Swift

    public struct Layout
    extension Layout: Codable
    extension Layout: Equatable
    extension Layout: Fixture
  • Declaration

    Swift

    public struct PanelPosition
    extension PanelPosition: Codable
    extension PanelPosition: Equatable
    extension PanelPosition: Fixture
  • Declaration

    Swift

    public struct Device
    extension Device: Codable
    extension Device: Equatable
    extension Device: Fixture
  • Declaration

    Swift

    public struct EffectList
    extension EffectList: Codable
    extension EffectList: Equatable
    extension EffectList: Fixture
  • Declaration

    Swift

    public struct LightPanelCollectionState
    extension LightPanelCollectionState: Codable
    extension LightPanelCollectionState: Equatable
    extension LightPanelCollectionState: Fixture
  • Declaration

    Swift

    public struct Plugin
    extension Plugin: Codable
    extension Plugin: Fixture
  • Declaration

    Swift

    public struct RangedValue<T> where T : Decodable, T : Encodable, T : Equatable
    extension RangedValue: Codable
    extension RangedValue: Equatable
  • Declaration

    Swift

    public struct Ryhthm
    extension Ryhthm: Codable
    extension Ryhthm: Fixture
  • Declaration

    Swift

    public struct RyhthmPosition
    extension RyhthmPosition: Codable
    extension RyhthmPosition: Fixture
  • Declaration

    Swift

    public struct APIError
    extension APIError: LocalizedError
    extension APIError: Codable
    extension APIError: Equatable
  • Declaration

    Swift

    public struct Value<T> where T : Decodable, T : Encodable, T : Equatable
    extension Value: Codable
    extension Value: Equatable
  • Declaration

    Swift

    public struct ValueRange<T> where T : Decodable, T : Encodable
    extension ValueRange: Codable
  • Authenticate the user with a Nanoleaf device.

    A user is authorized if they can demonstrate physical access to the device. This is achieved by holding the power button down for 5-7 seconds until the LED starts flashing in a pattern.

    Once the LED starts flashing, execute this request within 30 seconds.

    See more

    Declaration

    Swift

    public struct AuthenticateRequest : HTTPRequest

Rename effect

Ranged value mutation

  • Value mutation.

    This struct provides an abstrated way of building mutations for a device’s state.

    See more

    Declaration

    Swift

    public struct ValueMutation : Codable
  • A device’s address.

    Use DeviceAddressResolver to resolve local a Nanoleaf devices address. Then use the resulting DeviceAddress to build requests.

    See more

    Declaration

    Swift

    public struct DeviceAddress : Codable, Equatable, Hashable
    extension DeviceAddress: Fixture
  • A Nanoleaf device identifier.

    See more

    Declaration

    Swift

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