# AccessibilityNodeInfoCompat.StructuredDataInfoCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/view/accessibility/AccessibilityNodeInfoCompat.java+class:androidx.core.view.accessibility.AccessibilityNodeInfoCompat.StructuredDataInfoCompat) Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

*** ** * ** ***


```
abstract class AccessibilityNodeInfoCompat.StructuredDataInfoCompat
```

<br />

Known direct subclasses [AccessibilityNodeInfoCompat.MathInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.MathInfoCompat)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.MathInfoCompat` | Compat class for `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.MathInfo.html`, which is a class that holds information about a node that represents a mathematical expression. |

*** ** * ** ***

Compat class for `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.StructuredDataInfo.html`, which is a abstract base class for holding structured semantic information about a node.

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.StructuredDataInfo.html` | Compatibility: - API \<: 36.1: Class methods perform no-op behavior. |

## Summary

| ### Protected constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#StructuredDataInfoCompat(android.view.accessibility.AccessibilityNodeInfo.StructuredDataInfo)( structuredDataInfo: https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.StructuredDataInfo.html? )` Instantiates a new StructuredDataInfoCompat. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#equals(java.lang.Object)(obj: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` Compatibility: |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#getAttribute(java.lang.String)(attributeKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Gets the value of an attribute. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#getAttributes()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#getTag()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#hashCode()()` Compatibility: |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#putAttribute(java.lang.String,java.lang.String)(attributeKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Adds an attribute. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.StructuredDataInfoCompat#removeAttribute(java.lang.String)(attributeKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Removes an attribute. |

## Protected constructors

### StructuredDataInfoCompat

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
protected StructuredDataInfoCompat(
    structuredDataInfo: AccessibilityNodeInfo.StructuredDataInfo?
)
```

Instantiates a new StructuredDataInfoCompat.

| Parameters |
|---|---|
| `structuredDataInfo: https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.StructuredDataInfo.html?` | The underlying StructuredDataInfo to wrap. |

## Public functions

### equals

```
fun equals(obj: Any!): Boolean
```

Compatibility:

- API \<: 36.1: Returns `true` if this object is identical to `obj`, else `false`

### getAttribute

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
fun getAttribute(attributeKey: String): String?
```

Gets the value of an attribute.

| Parameters |
|---|---|
| `attributeKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The attribute key. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The attribute value. Compatibility: - API \<: 36.1: Always returns `null` |

### getAttributes

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
fun getAttributes(): (Mutable)Map<String!, String!>
```

| Returns |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>` | The map of attributes. Compatibility: - API \<: 36.1: Always returns an empty map |

### getTag

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
fun getTag(): String?
```

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The tag for this structured semantic information. Compatibility: - API \<: 36.1: Always returns `null` |

### hashCode

```
fun hashCode(): Int
```

Compatibility:

- API \<: 36.1: Always returns `0`

### putAttribute

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
fun putAttribute(attributeKey: String, value: String): Unit
```

Adds an attribute.

| Parameters |
|---|---|
| `attributeKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The attribute key. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The attribute value. Compatibility: - API \<: 36.1: Performs no-op behavior |

### removeAttribute

Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

```
fun removeAttribute(attributeKey: String): Unit
```

Removes an attribute.

| Parameters |
|---|---|
| `attributeKey: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The attribute key. Compatibility: - API \<: 36.1: Performs no-op behavior |