One Logo Pool Ball
CoreBluetooth · IOS API REFERENCE

CBPeripheralManager

class · iOS 6.0+ · SDK 27.1

class CBPeripheralManager

Members (17)

static · iOS 7.0+ · Deprecated in iOS 13.0

authorizationStatus

TypeScript
static authorizationStatus(): CBPeripheralManagerAuthorizationStatus
Swift declaration
class func authorizationStatus() -> CBPeripheralManagerAuthorizationStatus
method · iOS 6.0+

add

TypeScript
add(service: CBMutableService): void
Swift declaration
func add(_ service: CBMutableService)
init · iOS 6.0+

init

TypeScript
static init(): CBPeripheralManager
Swift declaration
convenience init()
init · iOS 6.0+

init

TypeScript
static initDelegateQueue(delegate?: (Implements<CBPeripheralManagerDelegate> | SDKHandle) | null, queue?: (_Dispatch_DispatchQueue) | null): CBPeripheralManager
Swift declaration
convenience init(delegate: (any CBPeripheralManagerDelegate)?, queue: dispatch_queue_t?)
init · iOS 7.0+

init

TypeScript
static initDelegateQueueOptions(delegate?: (Implements<CBPeripheralManagerDelegate> | SDKHandle) | null, queue?: (_Dispatch_DispatchQueue) | null, options?: (Record<string, unknown>) | null): CBPeripheralManager
Swift declaration
init(delegate: (any CBPeripheralManagerDelegate)?, queue: dispatch_queue_t?, options: [String : Any]? = nil)
method · iOS 11.0+

publishL2CAPChannel

TypeScript
publishL2CAPChannel(encryptionRequired: boolean): void
Swift declaration
func publishL2CAPChannel(withEncryption encryptionRequired: Bool)
method · iOS 6.0+

removeAllServices

TypeScript
removeAllServices(): void
Swift declaration
func removeAllServices()
method · iOS 6.0+

remove

TypeScript
remove(service: CBMutableService): void
Swift declaration
func remove(_ service: CBMutableService)
method · iOS 6.0+

respond

TypeScript
respond(request: CBATTRequest, result: CBATTError_Code): void
Swift declaration
func respond(to request: CBATTRequest, withResult result: CBATTError.Code)
method · iOS 6.0+

setDesiredConnectionLatency

TypeScript
setDesiredConnectionLatency(latency: CBPeripheralManagerConnectionLatency, central: CBCentral): void
Swift declaration
func setDesiredConnectionLatency(_ latency: CBPeripheralManagerConnectionLatency, for central: CBCentral)
method · iOS 6.0+

startAdvertising

TypeScript
startAdvertising(advertisementData?: (Record<string, unknown>) | null): void
Swift declaration
func startAdvertising(_ advertisementData: [String : Any]?)
method · iOS 6.0+

stopAdvertising

TypeScript
stopAdvertising(): void
Swift declaration
func stopAdvertising()
method · iOS 11.0+

unpublishL2CAPChannel

TypeScript
unpublishL2CAPChannel(PSM: number): void
Swift declaration
func unpublishL2CAPChannel(_ PSM: CBL2CAPPSM)
method · iOS 6.0+

updateValue

TypeScript
updateValue(value: ArrayBuffer, characteristic: CBMutableCharacteristic, centrals?: (Array<CBCentral>) | null): boolean
Swift declaration
func updateValue(_ value: Data, for characteristic: CBMutableCharacteristic, onSubscribedCentrals centrals: [CBCentral]?) -> Bool
get · iOS 6.0+

delegate

TypeScript
get delegate(): (SDKHandle) | null
Swift declaration
weak var delegate: (any CBPeripheralManagerDelegate)? { get set }
set · iOS 6.0+

delegate

TypeScript
set delegate(value: (Implements<CBPeripheralManagerDelegate> | SDKHandle) | null)
Swift declaration
weak var delegate: (any CBPeripheralManagerDelegate)? { get set }
get · iOS 6.0+

isAdvertising

TypeScript
get isAdvertising(): boolean
Swift declaration
var isAdvertising: Bool { get }

Skipped declarations

No declarations were skipped in this snapshot.

All CoreBluetooth types →