SCLFlicManagerBluetoothState

enum SCLFlicManagerBluetoothState {}

These enums represents the different possible states that the manager can be in at any given time. The manager needs to be in the SCLFlicManagerBluetoothStatePoweredOn state in order for it to perform any kind of communication with a Flic/PbF.

  • This state is the desired state that is needed when communicating with a Flic/PbF.

    Declaration

    Objective-C

    SCLFlicManagerBluetoothStatePoweredOn = 0

    Swift

    case poweredOn = 0
  • This state means that the manager is currently powered off and will not be able to perform any bluetooth related tasks. This will for example be the case when bluetooth is turned off on the iOS device.

    Declaration

    Objective-C

    SCLFlicManagerBluetoothStatePoweredOff

    Swift

    case poweredOff = 1
  • The manager is resetting and will most likely switch to the powered on state shortly.

    Declaration

    Objective-C

    SCLFlicManagerBluetoothStateResetting

    Swift

    case resetting = 2
  • The manager was not able to turn on because the iOS device that it is currently running on does not support Bluetooth Low Energy.

    Declaration

    Objective-C

    SCLFlicManagerBluetoothStateUnsupported

    Swift

    case unsupported = 3
  • The manager was not able to turn on because the app is not authorized to to use Bluetooth Low Energy.

    Declaration

    Objective-C

    SCLFlicManagerBluetoothStateUnauthorized

    Swift

    case unauthorized = 4
  • The manager is in an unknown state, it will most likely change shortly.

    Declaration

    Objective-C

    SCLFlicManagerBluetoothStateUnknown

    Swift

    case unknown = 5