CBCentralManager Class Reference

Inherits from

NSObject

Conforms to

NSObject (NSObject)

Framework

/System/Library/Frameworks/CoreBluetooth.framework

Availability

Available in iOS 5.0 and later.

Companion guide

Core Bluetooth Programming Guide

Declared in

CBCentralManager.h
CBCentralManagerConstants.h

Related sample code

BTLE Central Peripheral Transfer

CoreBluetooth Temperature Sensor

Overview

CBCentralManager 对象被用于管理外围(CBPeripheral )设备的寻找和联接。在你调用

CBCentralManager 方法之前,中枢管理对象的状态必须是接通电源,同时被 

CBCentralManagerStatePoweredOn 常量提示,这个提示表明中枢设备(你的iPhone

ipad)支持蓝牙低能量,并且蓝牙是可用的

Tasks

Initializing a Central Manager

 – initWithDelegate:queue:

 – initWithDelegate:queue:options:

Tasks

Initializing a Central Manager

 – initWithDelegate:queue:

 – initWithDelegate:queue:options:

Establishing or Canceling Connections with Peripherals

 – connectPeripheral:options:

 – cancelPeripheralConnection:

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:

 – stopScan

Monitoring Properties

    state  property

    delegate  property

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值