connectionView(_:shouldDisplayDiscovered:withAdvertisementData:rssi:)
Tells the delegate that a new peripheral was discovered and can be displayed in the connection view.
Declaration
func connectionView(_ connectionView: PlaygroundBluetoothConnectionView, shouldDisplayDiscovered peripheral: CBPeripheral, withAdvertisementData advertisementData: [String : Any]?, rssi: Double) -> BoolParameters
- connectionView:
The connection view showing available peripherals.
- peripheral:
The newly discovered peripheral.
- advertisementData:
The advertisement data you use to help decide whether or not to display the peripheral.
- rssi:
The current received signal strength indicator of the peripheral in decibels.
Return Value
A Boolean value indicating whether the newly discovered peripheral should show up in the connection view.