---
title: scanning
framework: Playground Bluetooth
role: symbol
role_heading: Instance Property
platforms: [xcode 10.2+, swift playgrounds 2.0+]
path: playgroundbluetooth/playgroundbluetoothcentralmanager/3029471-scanning
---

# scanning

A Boolean value that determines whether the central manager is scanning for peripherals.

## Declaration

```swift
var scanning: Bool { get set }
```

## Discussion

Discussion Set this property to true to start scanning for peripherals. Upon discovering a peripheral, the central manager calls the delegate’s centralManager(_:didDiscover:withAdvertisementData:rssi:) method.

## See Also

### Configuring Central Managers

- [init(services:queue:)](playgroundbluetooth/playgroundbluetoothcentralmanager/3029470-init.md)
- [delegate](playgroundbluetooth/playgroundbluetoothcentralmanager/3029468-delegate.md)
