Język

Rfc822Tokenizer.TerminateTokenFormatted(ICharSequence) Method

Definition

Terminates the specified address with a comma and space.

[Android.Runtime.Register("terminateToken", "(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "GetTerminateToken_Ljava_lang_CharSequence_Handler")]
public virtual Java.Lang.ICharSequence? TerminateTokenFormatted(Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("terminateToken", "(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "GetTerminateToken_Ljava_lang_CharSequence_Handler")>]
abstract member TerminateTokenFormatted : Java.Lang.ICharSequence -> Java.Lang.ICharSequence
override this.TerminateTokenFormatted : Java.Lang.ICharSequence -> Java.Lang.ICharSequence

Parameters

text
ICharSequence

The address text, which must already have valid syntax.

Returns

A character sequence containing the address text followed by , .

Implements

Attributes

Remarks

The Android implementation converts the text to a string and always appends the comma and space. It does not preserve spans or check for an existing terminator.

Terminates the specified address with a comma and space. This assumes that the specified text already has valid syntax. The Adapter subclass's convertToString() method must make that guarantee.

Java documentation for android.text.util.Rfc822Tokenizer.terminateToken(java.lang.CharSequence).

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