Sdílet prostřednictvím


AutofillValue.ForText Method

Definition

Overloads

ForText(ICharSequence)

Creates a new AutofillValue to autofill a View representing a text field.

ForText(String)

Creates a new AutofillValue to autofill a View representing a text field.

ForText(ICharSequence)

Creates a new AutofillValue to autofill a View representing a text field.

[Android.Runtime.Register("forText", "(Ljava/lang/CharSequence;)Landroid/view/autofill/AutofillValue;", "", ApiSince=26)]
public static Android.Views.Autofill.AutofillValue? ForText (Java.Lang.ICharSequence? value);
[<Android.Runtime.Register("forText", "(Ljava/lang/CharSequence;)Landroid/view/autofill/AutofillValue;", "", ApiSince=26)>]
static member ForText : Java.Lang.ICharSequence -> Android.Views.Autofill.AutofillValue

Parameters

Returns

Attributes

Remarks

Creates a new AutofillValue to autofill a View representing a text field.

See View#AUTOFILL_TYPE_TEXT for more info.

<b>Note:</b> This method is not thread safe and can throw an exception if the value is modified by a different thread before it returns.

Java documentation for android.view.autofill.AutofillValue.forText(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

ForText(String)

Creates a new AutofillValue to autofill a View representing a text field.

public static Android.Views.Autofill.AutofillValue? ForText (string? value);
static member ForText : string -> Android.Views.Autofill.AutofillValue

Parameters

value
String

Returns

Remarks

Creates a new AutofillValue to autofill a View representing a text field.

See View#AUTOFILL_TYPE_TEXT for more info.

<b>Note:</b> This method is not thread safe and can throw an exception if the value is modified by a different thread before it returns.

Java documentation for android.view.autofill.AutofillValue.forText(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