---
title: "setSearchAttributes(_:)"
framework: IOBluetooth UI
role: symbol
role_heading: Instance Method
platforms: [macOS 10.2+]
path: "iobluetoothui/iobluetoothdeviceselectorcontroller/setsearchattributes(_:)"
---

# setSearchAttributes(_:)

Sets the search attributes that control the panel’s search/inquiry behavior.

## Declaration

```swift
func setSearchAttributes(_ searchAttributes: UnsafePointer<IOBluetoothDeviceSearchAttributes>!)
```

## Parameters

- `searchAttributes`: Attributes to control the panel’s inquiry behavior.

## Discussion

Discussion The device search attributes control the inquiry behavior of the panel. They allow only devices that match the specified attributes (i.e. class of device) to be displayed to the user. Note that this only covers attributes returned in an inquiry result and not actual SDP services on the device. 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)
- [getResults()](iobluetoothui/iobluetoothdeviceselectorcontroller/getresults().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)
