BLUCentralManager Class Reference
Inherits from | NSObject |
---|---|
Conforms to | CBCentralManagerDelegate |
Declared in | BLUCentralManager.h BLUCentralManager.m |
Overview
BLUCentralManager objects are used to manage discovered or connected remote BlueBeacon devices (represented by BLUBeacon objects), including scanning for, discovering, and connecting to advertising BlueBeacons.
delegate
The delegate object you want to receive BlueUp central events.
@property (nonatomic, nullable) id<BLUCentralManagerDelegate> delegate
Declared In
BLUCentralManager.h
isScanning
A boolean value that states if the central manager is scanning for BlueBeacons.
@property (nonatomic, readonly) BOOL isScanning
Declared In
BLUCentralManager.h
– initWithDelegate:
Initializes the BlueUp central manager with a specified delegate.
- (nonnull instancetype)initWithDelegate:(nullable id<BLUCentralManagerDelegate>)delegate
Parameters
delegate |
The delegate to receive the BlueUp central events. |
---|
Return Value
Returns a newly initialized central manager.
Declared In
BLUCentralManager.h
– startScan
Scans for BlueBeacons that are advertising.
- (void)startScan
Declared In
BLUCentralManager.h
– stopScan
Asks the central manager to stop scanning for BlueBeacons.
- (void)stopScan
Declared In
BLUCentralManager.h
– connect:password:
Establishes a local connection to a BlueBeacon, optionally using a password.
- (void)connect:(nonnull BLUBeacon *)bluBeacon password:(nullable NSString *)password
Parameters
bluBeacon |
The BlueBeacon to which the central is attempting to connect. |
---|---|
password |
An optional password to unlock the BlueBeacon. |
Declared In
BLUCentralManager.h
– disconnect:
Cancels an active or pending local connection to a BlueBeacon.
- (void)disconnect:(nonnull BLUBeacon *)bluBeacon
Parameters
bluBeacon |
The BlueBeacon to which the central manager is already connected. |
---|
Declared In
BLUCentralManager.h