---
title: "peripheralDidUpdateName(_:)"
framework: corebluetooth
role: symbol
role_heading: Instance Method
path: "corebluetooth/cbperipheraldelegate/peripheraldidupdatename(_:)"
---

# peripheralDidUpdateName(_:)

Tells the delegate that a peripheral’s name changed.

## Declaration

```swift
optional func peripheralDidUpdateName(_ peripheral: CBPeripheral)
```

## Parameters

- `peripheral`: The peripheral providing this information.

## Discussion

Discussion Core Bluetooth invokes this method whenever the peripheral’s Generic Access Profile (GAP) device name changes. 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

- [peripheral(_:didModifyServices:)](corebluetooth/cbperipheraldelegate/peripheral(_:didmodifyservices:).md)
