---
title: getResults()
framework: IOBluetooth UI
role: symbol
role_heading: Instance Method
platforms: [macOS 10.2+]
path: iobluetoothui/iobluetoothpairingcontroller/getresults()
---

# getResults()

Returns an NSArray of the devices that were paired.

## Declaration

```swift
func getResults() -> [Any]!
```

## Return Value

Return Value Returns an NSArray of IOBluetoothDevice objects of devices that were paired. If the user cancelled the panel, nil will be returned.

## Discussion

Discussion There will only be results if the panel has been run, the user has successfully made a selection, that selection has been validated and the selected device paired. If kIOBluetoothUISuccess was returned for the session, there should be valid results. Currently only a single device is allowed to be selected, so the results array will only contain one object. However in the future multiple selection may be supported. NOTE: This method is only available in macOS 10.2.4 (Bluetooth v1.1) or later.

## See Also

### 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)
- [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)
