---
title: getDevice()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothobexsession/getdevice()
---

# getDevice()

Get the Bluetooth Device being used by the session object.

## Declaration

```swift
func getDevice() -> IOBluetoothDevice!
```

## Return Value

Return Value An IOBluetoothDevice object.
