iOS Developer Library

Developer

CBCentral Class Reference

Options
Deployment Target:

On This Page
Language:

CBCentral

Inherits From


Conforms To


Import Statement


Swift

import CoreBluetooth

Objective-C

@import CoreBluetooth;

Availability


Available in iOS 6.0 and later

The CBCentral class represents remote central devices that have connected to an app implementing the peripheral role on a local device. That is, when you are implementing the peripheral role using the CBPeripheralManager class, centrals that connect to your local peripheral are represented as CBCentral objects. Remote centrals are identified by universally unique identifiers (UUIDs), represented by NSUUID objects.

  • UUID UUID Available in iOS 5.0 through iOS 7.1 Property

    The UUID of the central. (read-only)

    Deprecation Statement

    Use the identifier property instead.

    Declaration

    Objective-C

    @property(readonly, nonatomic) CFUUIDRef UUID

    Discussion

    The value of this property represents the unique identifier of the central. Centrals are identified by standard CFUUIDRef UUIDs instead of by the CBUUID objects that identify a peripheral’s services, characteristics, and characteristic descriptors.

    Import Statement

    Objective-C

    @import CoreBluetooth;

    Availability

    Available in iOS 5.0 through iOS 7.1

    Deprecated in iOS 7.0

  • identifier identifier Available in iOS 7.0 through iOS 7.1 Property

    The UUID associated with the central. (read-only)

    Declaration

    Objective-C

    @property(readonly, nonatomic) NSUUID *identifier

    Discussion

    The value of this property represents the unique identifier of the central. Centrals are identified by NSUUID UUIDs instead of by the CBUUID objects that identify a peripheral’s services, characteristics, and characteristic descriptors.

    Import Statement

    Objective-C

    @import CoreBluetooth;

    Availability

    Available in iOS 7.0 through iOS 7.1

  • The maximum amount of data, in bytes, that the central can receive in a single notification or indication. (read-only)

    Declaration

    Swift

    var maximumUpdateValueLength: Int { get }

    Objective-C

    @property(readonly, nonatomic) NSUInteger maximumUpdateValueLength

    Import Statement

    Objective-C

    @import CoreBluetooth;

    Swift

    import CoreBluetooth

    Availability

    Available in iOS 7.0 and later