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

# getResults()

Returns the result of the user’s selection.

## Declaration

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

## Return Value

Return Value Returns an NSArray of IOBluetoothSDPServiceRecord 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/iobluetoothservicebrowsercontroller/addalloweduuid(_:).md)
- [addAllowedUUIDArray(_:)](iobluetoothui/iobluetoothservicebrowsercontroller/addalloweduuidarray(_:).md)
- [beginSheetModal(for:modalDelegate:didEnd:contextInfo:)](iobluetoothui/iobluetoothservicebrowsercontroller/beginsheetmodal(for:modaldelegate:didend:contextinfo:).md)
- [clearAllowedUUIDs()](iobluetoothui/iobluetoothservicebrowsercontroller/clearalloweduuids().md)
- [getDescriptionText()](iobluetoothui/iobluetoothservicebrowsercontroller/getdescriptiontext().md)
- [getOptions()](iobluetoothui/iobluetoothservicebrowsercontroller/getoptions().md)
- [getPrompt()](iobluetoothui/iobluetoothservicebrowsercontroller/getprompt().md)
- [getRef()](iobluetoothui/iobluetoothservicebrowsercontroller/getref().md)
- [getSearchAttributes()](iobluetoothui/iobluetoothservicebrowsercontroller/getsearchattributes().md)
- [getTitle()](iobluetoothui/iobluetoothservicebrowsercontroller/gettitle().md)
- [runModal()](iobluetoothui/iobluetoothservicebrowsercontroller/runmodal().md)
- [setDescriptionText(_:)](iobluetoothui/iobluetoothservicebrowsercontroller/setdescriptiontext(_:).md)
- [setOptions(_:)](iobluetoothui/iobluetoothservicebrowsercontroller/setoptions(_:).md)
- [setPrompt(_:)](iobluetoothui/iobluetoothservicebrowsercontroller/setprompt(_:).md)
- [setSearchAttributes(_:)](iobluetoothui/iobluetoothservicebrowsercontroller/setsearchattributes(_:).md)
