AccessibilityNodeInfoCompat.StructuredDataInfoCompat


abstract class AccessibilityNodeInfoCompat.StructuredDataInfoCompat

Known direct subclasses
AccessibilityNodeInfoCompat.MathInfoCompat

Compat class for AccessibilityNodeInfo.MathInfo, which is a class that holds information about a node that represents a mathematical expression.


Compat class for AccessibilityNodeInfo.StructuredDataInfo, which is a abstract base class for holding structured semantic information about a node.

See also
AccessibilityNodeInfo.StructuredDataInfo

Compatibility:

  • API <: 36.1: Class methods perform no-op behavior.

Summary

Protected constructors

StructuredDataInfoCompat(structuredDataInfo: StructuredDataInfo?)

Instantiates a new StructuredDataInfoCompat.

Public functions

Boolean
equals(obj: Any!)

Compatibility:

String?
getAttribute(attributeKey: String)

Gets the value of an attribute.

(Mutable)Map<String!, String!>
String?
Int

Compatibility:

Unit
putAttribute(attributeKey: String, value: String)

Adds an attribute.

Unit
removeAttribute(attributeKey: String)

Removes an attribute.

Protected constructors

StructuredDataInfoCompat

protected StructuredDataInfoCompat(structuredDataInfo: StructuredDataInfo?)

Instantiates a new StructuredDataInfoCompat.

Parameters
structuredDataInfo: StructuredDataInfo?

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

fun getAttribute(attributeKey: String): String?

Gets the value of an attribute.

Parameters
attributeKey: String

The attribute key.

Returns
String?

The attribute value. Compatibility:

  • API <: 36.1: Always returns null

getAttributes

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

The map of attributes. Compatibility:

  • API <: 36.1: Always returns an empty map

getTag

fun getTag(): String?
Returns
String?

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

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

Adds an attribute.

Parameters
attributeKey: String

The attribute key.

value: String

The attribute value. Compatibility:

  • API <: 36.1: Performs no-op behavior

removeAttribute

fun removeAttribute(attributeKey: String): Unit

Removes an attribute.

Parameters
attributeKey: String

The attribute key. Compatibility:

  • API <: 36.1: Performs no-op behavior