Skip to content

ScanningCBManager

Protocol defining interface needed by FlakeBTScanner to start and stop a bluetooth scan and to receive the events without beeing a CBCentralManagerDelegate itself

swift
protocol ScanningCBManager : AnyObject

Overview

Implemented by PeripheralManager

Instance Properties

delegate

swift
var delegate: SharedCBDiscoveryDelegate?

Shared Delegate used by PeripheralManager to share results of CBCentralManagerDelegate method centralManager(_:didDiscover:advertisementData:rssi:) with FlakeBTScanner

Instance Methods

startScanning(with:)

swift
func startScanning(with: [CBUUID]) throws

Will start a Bluetooth scan

stopScanning()

swift
func stopScanning() throws

Will stop a Bluetooth scan