RGLBluetoothDelegate
Objective-C
@protocol RGLBluetoothDelegate <NSObject>
@optional;
/// Tells the delegate that connection state of connected Regula device is changed.
- (void)didChangeConnectionState:(RGLBluetooth *)bluetooth state:(RGLBluetoothConnectionState)state;
/// Tells the delegate that battery level of connected Regula device is changed.
- (void)didChangeBatteryLevel:(RGLBluetooth *)bluetooth level:(NSUInteger)level;
/// Tells the delegate that Regula device is found.
- (void)didFindDevice:(RGLBluetooth *)bluetooth device:(CBPeripheral *)device;
/// Tells the delegate that scan for Regula Devices is started.
- (void)didStartScan:(RGLBluetooth *)bluetooth;
/// Tells the delegate that scan for Regula Devices is started.
- (void)didEndScan:(RGLBluetooth *)bluetooth devices:(NSArray<CBPeripheral *> *)devices;
@end
Swift
protocol RGLBluetoothDelegate : NSObjectProtocol
Undocumented
-
Tells the delegate that connection state of connected Regula device is changed.
Declaration
Objective-C
- (void)didChangeConnectionState:(nonnull RGLBluetooth *)bluetooth state:(RGLBluetoothConnectionState)state;
Swift
optional func didChangeConnectionState(_ bluetooth: Bluetooth, state: BluetoothConnectionState)
-
Tells the delegate that battery level of connected Regula device is changed.
Declaration
Objective-C
- (void)didChangeBatteryLevel:(nonnull RGLBluetooth *)bluetooth level:(NSUInteger)level;
Swift
optional func didChangeBatteryLevel(_ bluetooth: Bluetooth, level: UInt)
-
Tells the delegate that Regula device is found.
Declaration
Objective-C
- (void)didFindDevice:(nonnull RGLBluetooth *)bluetooth device:(nonnull CBPeripheral *)device;
Swift
optional func didFindDevice(_ bluetooth: Bluetooth, device: CBPeripheral)
-
Tells the delegate that scan for Regula Devices is started.
Declaration
Objective-C
- (void)didStartScan:(nonnull RGLBluetooth *)bluetooth;
Swift
optional func didStartScan(_ bluetooth: Bluetooth)
-
Tells the delegate that scan for Regula Devices is started.
Declaration
Objective-C
- (void)didEndScan:(nonnull RGLBluetooth *)bluetooth devices:(nonnull NSArray<CBPeripheral *> *)devices;
Swift
optional func didEndScan(_ bluetooth: Bluetooth, devices: [CBPeripheral])