Lingua

AccessibilityNodeInfo.MathInfo.MathAttributeIntent Field

Definition

An attribute that provides a semantic annotation for the element on which it is specified.

[Android.Runtime.Register("MATH_ATTRIBUTE_INTENT", ApiSince=37)]
public const string MathAttributeIntent;
[<Android.Runtime.Register("MATH_ATTRIBUTE_INTENT", ApiSince=37)>]
val mutable MathAttributeIntent : string

Field Value

Implements

Attributes

Remarks

An attribute that provides a semantic annotation for the element on which it is specified.

The intent attribute's value is a string that can be parsed to determine the meaning of the element and its children. An intent value is a string consisting of a single token, or a function-like expression.

Use this attribute on a container node to disambiguate mathematical notation. For example, the expression (a, b) is ambiguous; it could be a point, an open interval, or the greatest common divisor. By setting intent="open-interval($1, $2)" on the parent node, you provide a precise, machine-readable meaning that accessibility services can use to provide a better experience. The $1 and $2 are placeholders for the arguments, which are identified on child nodes using the MATH_ATTRIBUTE_ARG attribute.

Android reference for android.view.accessibility.AccessibilityNodeInfo.MathInfo.MATH_ATTRIBUTE_INTENT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to