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

# getResults()

Returns the result of the user’s selection.

## Declaration

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

## Return Value

Return Value Returns an NSArray of IOBluetoothDevice objects corresponding to the user’s selection. 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 and that selection has been validated. 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 will be supported. NOTE: This method is only available in macOS 10.2.4 (Bluetooth v1.1) or later.

## See Also

### Instance Methods

- [addAllowedUUID(_:)](iobluetoothui/iobluetoothdeviceselectorcontroller/addalloweduuid(_:).md)
- [addAllowedUUIDArray(_:)](iobluetoothui/iobluetoothdeviceselectorcontroller/addalloweduuidarray(_:).md)
- [beginSheetModal(for:modalDelegate:didEnd:contextInfo:)](iobluetoothui/iobluetoothdeviceselectorcontroller/beginsheetmodal(for:modaldelegate:didend:contextinfo:).md)
- [clearAllowedUUIDs()](iobluetoothui/iobluetoothdeviceselectorcontroller/clearalloweduuids().md)
- [getCancel()](iobluetoothui/iobluetoothdeviceselectorcontroller/getcancel().md)
- [getDescriptionText()](iobluetoothui/iobluetoothdeviceselectorcontroller/getdescriptiontext().md)
- [getHeader()](iobluetoothui/iobluetoothdeviceselectorcontroller/getheader().md)
- [getOptions()](iobluetoothui/iobluetoothdeviceselectorcontroller/getoptions().md)
- [getPrompt()](iobluetoothui/iobluetoothdeviceselectorcontroller/getprompt().md)
- [getSearchAttributes()](iobluetoothui/iobluetoothdeviceselectorcontroller/getsearchattributes().md)
- [getTitle()](iobluetoothui/iobluetoothdeviceselectorcontroller/gettitle().md)
- [runModal()](iobluetoothui/iobluetoothdeviceselectorcontroller/runmodal().md)
- [setCancel(_:)](iobluetoothui/iobluetoothdeviceselectorcontroller/setcancel(_:).md)
- [setDescriptionText(_:)](iobluetoothui/iobluetoothdeviceselectorcontroller/setdescriptiontext(_:).md)
- [setHeader(_:)](iobluetoothui/iobluetoothdeviceselectorcontroller/setheader(_:).md)
