Invoked when the central manager discovers a peripheral while scanning.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
The central manager providing the update.
The discovered peripheral.
A dictionary containing any advertisement data.
The current received signal strength indicator (RSSI) of the peripheral, in decibels.
The advertisement data can be accessed through the keys listed in Advertisement Data Retrieval Keys. You must retain a local copy of the peripheral if any command is to be performed on it. In use cases where it makes sense for your app to automatically connect to a peripheral that is located within a certain range, you can use RSSI data to determine the proximity of a discovered peripheral device.