AccessibilityNodeInfoCompat.StructuredDataInfoCompat


public 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(
    @Nullable StructuredDataInfo structuredDataInfo
)

Instantiates a new StructuredDataInfoCompat.

Public methods

boolean

Compatibility:

@Nullable String
getAttribute(@NonNull String attributeKey)

Gets the value of an attribute.

@NonNull Map<StringString>
@Nullable String
int

Compatibility:

void
putAttribute(@NonNull String attributeKey, @NonNull String value)

Adds an attribute.

void

Removes an attribute.

Protected constructors

StructuredDataInfoCompat

protected StructuredDataInfoCompat(
    @Nullable StructuredDataInfo structuredDataInfo
)

Instantiates a new StructuredDataInfoCompat.

Parameters
@Nullable StructuredDataInfo structuredDataInfo

The underlying StructuredDataInfo to wrap.

Public methods

equals

public boolean equals(Object obj)

Compatibility:

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

getAttribute

public @Nullable String getAttribute(@NonNull String attributeKey)

Gets the value of an attribute.

Parameters
@NonNull String attributeKey

The attribute key.

Returns
@Nullable String

The attribute value. Compatibility:

  • API <: 36.1: Always returns null

getAttributes

public @NonNull Map<StringStringgetAttributes()
Returns
@NonNull Map<StringString>

The map of attributes. Compatibility:

  • API <: 36.1: Always returns an empty map

getTag

public @Nullable String getTag()
Returns
@Nullable String

The tag for this structured semantic information. Compatibility:

  • API <: 36.1: Always returns null

hashCode

public int hashCode()

Compatibility:

  • API <: 36.1: Always returns 0

putAttribute

public void putAttribute(@NonNull String attributeKey, @NonNull String value)

Adds an attribute.

Parameters
@NonNull String attributeKey

The attribute key.

@NonNull String value

The attribute value. Compatibility:

  • API <: 36.1: Performs no-op behavior

removeAttribute

public void removeAttribute(@NonNull String attributeKey)

Removes an attribute.

Parameters
@NonNull String attributeKey

The attribute key. Compatibility:

  • API <: 36.1: Performs no-op behavior