---
title: IOBluetoothPairingController
framework: IOBluetooth UI
role: symbol
role_heading: Class
platforms: [macOS 10.2+]
path: iobluetoothui/iobluetoothpairingcontroller
---

# IOBluetoothPairingController

A NSWindowController subclass to display a window to initiate pairing to other bluetooth devices.

## Declaration

```swift
class IOBluetoothPairingController
```

## Overview

Overview Implementation of a window controller to handle pairing with a bluetooth device. This class will handle connecting to the Bluetooth Daemon for the purposes of searches, and displaying the results. When necessary this class will display a sheet asking the user for a PIN code. This window will not return anything to the caller if it is canceled or if pairing occurs.

## Topics

### Instance Methods

- [addAllowedUUID(_:)](iobluetoothui/iobluetoothpairingcontroller/addalloweduuid(_:).md)
- [addAllowedUUIDArray(_:)](iobluetoothui/iobluetoothpairingcontroller/addalloweduuidarray(_:).md)
- [clearAllowedUUIDs()](iobluetoothui/iobluetoothpairingcontroller/clearalloweduuids().md)
- [getDescriptionText()](iobluetoothui/iobluetoothpairingcontroller/getdescriptiontext().md)
- [getOptions()](iobluetoothui/iobluetoothpairingcontroller/getoptions().md)
- [getPrompt()](iobluetoothui/iobluetoothpairingcontroller/getprompt().md)
- [getResults()](iobluetoothui/iobluetoothpairingcontroller/getresults().md)
- [getSearchAttributes()](iobluetoothui/iobluetoothpairingcontroller/getsearchattributes().md)
- [getTitle()](iobluetoothui/iobluetoothpairingcontroller/gettitle().md)
- [runModal()](iobluetoothui/iobluetoothpairingcontroller/runmodal().md)
- [setDescriptionText(_:)](iobluetoothui/iobluetoothpairingcontroller/setdescriptiontext(_:).md)
- [setOptions(_:)](iobluetoothui/iobluetoothpairingcontroller/setoptions(_:).md)
- [setPrompt(_:)](iobluetoothui/iobluetoothpairingcontroller/setprompt(_:).md)
- [setSearchAttributes(_:)](iobluetoothui/iobluetoothpairingcontroller/setsearchattributes(_:).md)
- [setTitle(_:)](iobluetoothui/iobluetoothpairingcontroller/settitle(_:).md)

## Relationships

### Inherits From

- [NSWindowController](appkit/nswindowcontroller.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSeguePerforming](appkit/nssegueperforming.md)
- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [NSUserActivityRestoring](appkit/nsuseractivityrestoring.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Classes

- [IOBluetoothAccessibilityIgnoredImageCell](iobluetoothui/iobluetoothaccessibilityignoredimagecell.md)
- [IOBluetoothAccessibilityIgnoredTextFieldCell](iobluetoothui/iobluetoothaccessibilityignoredtextfieldcell.md)
- [IOBluetoothDeviceSelectorController](iobluetoothui/iobluetoothdeviceselectorcontroller.md)
- [IOBluetoothDeviceSelectorControllerRef](iobluetoothui/iobluetoothdeviceselectorcontrollerref.md)
- [IOBluetoothObjectPushUIController](iobluetoothui/iobluetoothobjectpushuicontroller.md)
- [IOBluetoothPairingControllerRef](iobluetoothui/iobluetoothpairingcontrollerref.md)
- [IOBluetoothPasskeyDisplay](iobluetoothui/iobluetoothpasskeydisplay.md)
- [IOBluetoothServiceBrowserController](iobluetoothui/iobluetoothservicebrowsercontroller.md)
- [IOBluetoothServiceBrowserControllerRef](iobluetoothui/iobluetoothservicebrowsercontrollerref.md)
