Language

AccessibilityNodeInfo.MathInfo Class

Definition

A class that holds information about a node that represents a mathematical expression.

[Android.Runtime.Register("android/view/accessibility/AccessibilityNodeInfo$MathInfo", ApiSince=37, DoNotGenerateAcw=true)]
public sealed class AccessibilityNodeInfo.MathInfo : Android.Views.Accessibility.AccessibilityNodeInfo.StructuredDataInfo, Android.OS.IParcelable, IDisposable
[<Android.Runtime.Register("android/view/accessibility/AccessibilityNodeInfo$MathInfo", ApiSince=37, DoNotGenerateAcw=true)>]
type AccessibilityNodeInfo.MathInfo = class
    inherit AccessibilityNodeInfo.StructuredDataInfo
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
Attributes
Implements

Remarks

A class that holds information about a node that represents a mathematical expression.

This class's structure is based on the concepts and tags defined in the W3C MathML standard. An accessibility service can use this information to provide a richer experience for users interacting with mathematical content. For example, a screen reader could use the tag and attributes to correctly pronounce a fraction and allow the user to navigate between the numerator and the denominator.

To add math information to a node, create an instance of MathInfo, set its attributes using putAttribute(String,String), and then call setStructuredDataInfo(StructuredDataInfo) on the AccessibilityNodeInfo.

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

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.

Constructors

Name Description
AccessibilityNodeInfo.MathInfo(String)

Creates a new MathInfo.

Fields

Name Description
MathAttributeArg

An attribute used to associate a child element with one of the arguments in its parent's #MATH_ATTRIBUTE_INTENT value.

MathAttributeIntent

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

MathTagFraction

An element for creating fractions.

MathTagIdentifier

An element for symbolic names or arbitrary text to be rendered as an identifier.

MathTagMath

The top-level root element that encapsulates a MathML expression.

MathTagMultiscripts

An element for attaching any number of prescripts and postscripts to a base expression.

MathTagNoneScript

Represents an empty element, often used as a placeholder in elements like mmultiscripts.

MathTagNumber

An element for a numeric literal.

MathTagOperator

An element for an operator, fence, separator, or accent.

MathTagOver

An element that attaches an accent or a limit over a base expression.

MathTagPrescriptDelimiter

An empty element used within mmultiscripts to separate postscripts from prescripts.

MathTagRoot

An element for radicals with an explicit index, such as a cube root.

MathTagRow

An element for grouping sub-expressions horizontally.

MathTagSquareRoot

An element for a square root.

MathTagStringLiteral

An element for representing string literals, often for computer algebra systems.

MathTagSub

An element that attaches a subscript to a base expression.

MathTagSubSup

An element that attaches both a subscript and a superscript to a base expression.

MathTagSup

An element that attaches a superscript to a base expression.

MathTagTable

An element for creating tables or matrices.

MathTagTableCell

An element representing a single cell in a table or matrix.

MathTagTableRow

An element representing a single row in a a table or matrix.

MathTagText

An element for arbitrary text to be rendered as itself, often used for commentary.

MathTagUnder

An element that attaches an accent or a limit under a base expression.

MathTagUnderOver

An element that attaches scripts both under and over a base expression.

Properties

Name Description
Attributes (Inherited from AccessibilityNodeInfo.StructuredDataInfo)
Class

Returns the runtime class of this Object.

(Inherited from Object)
Creator
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode

Gets the identity hash code assigned to this Java peer by the interop runtime.

(Inherited from Object)
JniManagedPeerState (Inherited from JavaObject)
JniPeerMembers
PeerReference

Gets the JNI object reference for this Java peer.

(Inherited from Object)
Tag (Inherited from AccessibilityNodeInfo.StructuredDataInfo)
ThresholdClass (Inherited from AccessibilityNodeInfo.StructuredDataInfo)
ThresholdType (Inherited from AccessibilityNodeInfo.StructuredDataInfo)

Methods

Name Description
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Construct(JniObjectReference, JniObjectReferenceOptions) (Inherited from JavaObject)
DescribeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

Dispose()

Releases the resources held by this Java peer.

(Inherited from Object)
Dispose(Boolean)

Releases the resources held by this Java peer.

(Inherited from Object)
DisposeUnlessReferenced() (Inherited from JavaObject)
Equals(Object) (Inherited from JavaObject)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetAttribute(String)

Gets the value of an attribute.

(Inherited from AccessibilityNodeInfo.StructuredDataInfo)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()
Obsolete.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
PutAttribute(String, String)

Adds an attribute.

(Inherited from AccessibilityNodeInfo.StructuredDataInfo)
RemoveAttribute(String)

Removes an attribute.

(Inherited from AccessibilityNodeInfo.StructuredDataInfo)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions) (Inherited from JavaObject)
ToArray<T>()

Creates a managed array from this Java array wrapper.

(Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime()

Unregisters this Java peer from the interop runtime.

(Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

Name Description
IJavaPeerable.Disposed() (Inherited from JavaObject)
IJavaPeerable.Finalized() (Inherited from JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock (Inherited from JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from JavaObject)
IJavaPeerable.UnregisterFromRuntime()

Extension Methods

Name Description
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to