Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bluetooth status (powered) #305

Open
Open
Labels
enhancementNew feature or request
@CavalcanteLeo

Description

We can check the status o f the bluetooth if it's turned on or off

Should be great to check that too with PermissionsKit

var manager:CBCentralManager!
 viewDidLoad() { // Or init()
 manager = CBCentralManager()
 manager.delegate = self
 }
func centralManagerDidUpdateState(_ central: CBCentralManager) {
 switch central.state {
 case .poweredOn:
 break
 case .poweredOff:
 print("Bluetooth is Off.")
 break
 case .resetting:
 break
 case .unauthorized:
 break
 case .unsupported:
 break
 case .unknown:
 break
 default:
 break
 }
}

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /