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

# getLinkType()

Get the link type for the baseband connection.

## Declaration

```swift
func getLinkType() -> BluetoothLinkType
```

## Return Value

Return Value Returns the link type for the baseband connection. If no baseband connection is present, kBluetoothLinkTypeNone is returned.

## Discussion

Discussion This method only returns a valid result if a baseband connection is present (-isConnected returns TRUE).
