What's New / Connectivity & Hardware

What's new in CoreBluetooth

+10 NewiOS

CoreBluetooth is Apple's framework for communicating with Bluetooth Low Energy devices. It covers the central and peripheral roles, scanning, connecting, and exchanging data over GATT services and characteristics.

The 27 SDK adds 10 APIs, all for channel sounding. It adds the CBCentralManager.Feature.channelSounding flag, two CBError.Code cases (channelSoundingConfigurationFailed and channelSoundingProcedureFailed) with matching CBError values, the startChannelSoundingSession and cancelChannelSoundingSession methods, a Role enum, and CBPeripheralDelegate callbacks. No deprecations or removals.

New

10
func

cancelChannelSoundingSession

NewiOS
open func cancelChannelSoundingSession()
func

startChannelSoundingSession

NewiOS
open func startChannelSoundingSession(_ configuration: CBChannelSoundingSessionConfiguration)
var

CBCentralManager.Feature.channelSounding

NewiOS
public static var channelSounding: CBCentralManager.Feature { get }
enum

CBChannelSoundingSessionConfiguration.Role

NewiOS
public enum Role : Int, @unchecked Sendable
Declaration
public enum Role : Int, @unchecked Sendable {

    case initiator = 0
}
var

CBError.channelSoundingConfigurationFailed

NewiOS
public static var channelSoundingConfigurationFailed: CBError.Code { get }
var

CBError.channelSoundingProcedureFailed

NewiOS
public static var channelSoundingProcedureFailed: CBError.Code { get }
case

CBError.Code.channelSoundingConfigurationFailed

NewiOS
case channelSoundingConfigurationFailed = 19
case

CBError.Code.channelSoundingProcedureFailed

NewiOS
case channelSoundingProcedureFailed = 20
func

CBPeripheralDelegate.peripheral

NewiOS
optional func peripheral(_ peripheral: CBPeripheral, didReceive results: CBChannelSoundingProcedureResults?, error: (any Error)?)
func

CBPeripheralDelegate.peripheral

NewiOS
optional func peripheral(_ peripheral: CBPeripheral, didCompleteChannelSoundingSession error: (any Error)?)

No APIs match your filter.

← More in Connectivity & Hardware