---
title: getStringValue()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothsdpdataelement/getstringvalue()
---

# getStringValue()

If the data element is represented by a string object, it returns the value as an NSString.

## Declaration

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

## Return Value

Return Value Returns an NSString representation of the data element if it is a text or URL type.

## Discussion

Discussion The data types represented by a string object are 4 (text string) and 8 (URL).
