authorization
The current authorization status for using Bluetooth.
Declaration
class var authorization: CBManagerAuthorization { get }Discussion
Check this property in your implementation of the delegate methods centralManagerDidUpdateState(_:) and peripheralManagerDidUpdateState(_:) to determine whether your app can use Core Bluetooth. You can also use it to check the app’s authorization status before creating a CBManager instance.
The initial value of this property is CBManagerAuthorization.notDetermined.