---
title: getServiceName()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothsdpservicerecord/getservicename()
---

# getServiceName()

Returns the name of the service.

## Declaration

```swift
func getServiceName() -> String!
```

## Return Value

Return Value Returns the name of the target service.

## Discussion

Discussion This is currently implemented to simply return the attribute with an id of 0x0100. In the future, it will be extended to allow name localization based on the user’s chosen language or other languages.
