Język

AssistStructure.ViewNode.TextFormatted Property

Definition

Returns any text associated with the node that is displayed to the user, or null if there is none.

public virtual Java.Lang.ICharSequence TextFormatted { [Android.Runtime.Register("getText", "()Ljava/lang/CharSequence;", "GetGetTextHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getText", "()Ljava/lang/CharSequence;", "GetGetTextHandler", ApiSince=23)>]
member this.TextFormatted : Java.Lang.ICharSequence

Property Value

The character sequence displayed by the node, or null if no text is set. The collected text can have spans removed.

Attributes

Remarks

Returns any text associated with the node that is displayed to the user, or null if there is none.

The text will be stripped of any spans that could potentially contain reference to the activity context, to avoid memory leak. If the text contained a span, a plain string version of the text will be returned.

Java documentation for android.app.assist.AssistStructure.ViewNode.getText().

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