Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/CoreBluetooth.framework |
Availability | Available in iOS 5.0 and later. |
Companion guide | |
Declared in | CBCentralManager.h |
Related sample code |
CBCentralManager 对象被用于管理外围(CBPeripheral )设备的寻找和联接。在你调用
CBCentralManager 方法之前,中枢管理对象的状态必须是接通电源,同时被
CBCentralManagerStatePoweredOn 常量提示,这个提示表明中枢设备(你的iPhone或
者ipad)支持蓝牙低能量,并且蓝牙是可用的
Tasks
Initializing a Central Manager
– initWithDelegate:queue:options:
Tasks
Initializing a Central Manager
– initWithDelegate:queue:options:
Establishing or Canceling Connections with Peripherals
Retrieving Lists of Peripherals
– retrieveConnectedPeripheralsWithServices:
– retrievePeripheralsWithIdentifiers:
– retrieveConnectedPeripherals Deprecated in iOS 7.0
– retrievePeripherals: Deprecated in iOS 7.0
Scanning or Stopping Scans of Peripherals
– scanForPeripheralsWithServices:options:
state property
delegate property