Enums

The following enums are available globally.

  • The type of location service authorization to request

    • Always: Location services will still run even when app is in background
    • WhenInUse: Location services will only run when app is in foreground

    Declaration

    Swift

    public enum AuthorizationType: Int
  • Represents the current bluetooth state of a device.

    • Unknown: State unknown, update imminent.
    • Resetting: The connection with the system service was momentarily lost, update imminent.
    • Unsupported: The platform doesn’t support the Bluetooth Low Energy Central/Client role.
    • Unauthorized: The application is not authorized to use the Bluetooth Low Energy Central/Client role.
    • PoweredOff: Bluetooth is currently powered off.
    • PoweredOn: Bluetooth is currently powered on and available to use.

    Declaration

    Swift

    @objc public enum BluetoothState: Int