Status

sealed class Status

Base class for the possible statuses of the UnitController

Types

BluetoothError
Link copied to clipboard
data class BluetoothError(code: Int) : UnitController.Status

There was an error reported by the mobile device bluetooth radio. That's a direct result from android.bluetooth.le.ScanCallback.onScanFailed. The UnitController will keep trying to scan thou.

BluetoothIsOff
Link copied to clipboard
object BluetoothIsOff : UnitController.Status

The mobile device bluetooth radio is turned off.

Busy
Link copied to clipboard
object Busy : UnitController.Status

This UnitController is busy. This status is a directly effect of a call to UnitController.openLiveData

LocationIsOff
Link copied to clipboard
object LocationIsOff : UnitController.Status

The mobile device location services is turned off.

NoLocationPermission
Link copied to clipboard
object NoLocationPermission : UnitController.Status

The client application did not request location permission, or the user have declined it. Refer to Requesting Location Permission on how to properly implement permission request.

Ready
Link copied to clipboard
object Ready : UnitController.Status

The UnitController is ready to be used. That's the only status where calling UnitController.openLiveData will not trigger an IllegalStateException

SdkNotReady
Link copied to clipboard
object SdkNotReady : UnitController.Status

The SDK is not ready to be used. The UnitController depends on it.

Inheritors

UnitController.Status
Link copied to clipboard
UnitController.Status
Link copied to clipboard
UnitController.Status
Link copied to clipboard
UnitController.Status
Link copied to clipboard
UnitController.Status
Link copied to clipboard
UnitController.Status
Link copied to clipboard
UnitController.Status
Link copied to clipboard