Instance Method

peripheralDidUpdateName(_:)

Invoked when a peripheral’s name changes.

Declaration

optional func peripheralDidUpdateName(_ peripheral: CBPeripheral)

Parameters

peripheral

The peripheral providing this information.

Discussion

The method is invoked whenever the peripheral device’s Generic Access Profile (GAP) device name has changed. Since a peripheral device can change its GAP device name, you can implement this method if your app needs to display the current name of the peripheral device.

See Also

Monitoring Changes to a Peripheral’s Name or Services

func peripheral(CBPeripheral, didModifyServices: [CBService])

Invoked when a peripheral’s services have changed.