> For the complete documentation index, see [llms.txt](https://docs.sentiance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sentiance.com/sdk/api-reference/android/usercontext/attribute.md).

# Attribute

Represents an attribute pertaining to a segment.

## Attribute API <a href="#attribute-api" id="attribute-api"></a>

| ​      | ​                         |
| ------ | ------------------------- |
| String | ​[getName](#getname) ()   |
| Float  | ​[getValue](#getvalue) () |

​‌

### `getName()` <a href="#getname" id="getname"></a>

> ```
> String getName()
> ```
>
> Returns the name of the attribute.

### `getValue()` <a href="#getvalue" id="getvalue"></a>

> ```
> double getValue()
> ```
>
> Returns the value of the attribute.
