---
title: addToFavorites()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothdevice/addtofavorites()
---

# addToFavorites()

Adds the target device to the user’s favorite devices list.

## Declaration

```swift
func addToFavorites() -> IOReturn
```

## Return Value

Return Value Returns kIOReturnSuccess if the device was successfully added to the user’s list of favorite devices.

## Discussion

Discussion NOTE: This method is only available in macOS 10.2.4 (Bluetooth v1.1) or later.
