---
title: favoriteDevices()
framework: IOBluetooth
role: symbol
role_heading: Type Method
path: iobluetooth/iobluetoothdevice/favoritedevices()
---

# favoriteDevices()

Gets an array of the user’s favorite devices.

## Declaration

```swift
class func favoriteDevices() -> [Any]!
```

## Return Value

Return Value Returns an array of device objects representing the user’s favorite devices. If the user has no favorites, nil is returned.

## Discussion

Discussion The resulting array contains IOBluetoothDevice objects. NOTE: This method is only available in macOS 10.2.4 (Bluetooth v1.1) or later.
