IAdapter.GetAutofillOptionsFormatted Method

Definition

Gets a string representation of the adapter data that can help android.service.autofill.AutofillService autofill the view backed by the adapter.

[Android.Runtime.Register("getAutofillOptions", "()[Ljava/lang/CharSequence;", "GetGetAutofillOptionsHandler:Android.Widget.IAdapter, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual Java.Lang.ICharSequence[]? GetAutofillOptionsFormatted ();
[<Android.Runtime.Register("getAutofillOptions", "()[Ljava/lang/CharSequence;", "GetGetAutofillOptionsHandler:Android.Widget.IAdapter, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member GetAutofillOptionsFormatted : unit -> Java.Lang.ICharSequence[]
override this.GetAutofillOptionsFormatted : unit -> Java.Lang.ICharSequence[]

Returns

null by default, unless implementations override it.

Attributes

Remarks

Gets a string representation of the adapter data that can help android.service.autofill.AutofillService autofill the view backed by the adapter.

It should only be set (i.e., non-null if the values do not represent PII (Personally Identifiable Information - sensitive data such as email addresses, credit card numbers, passwords, etc...). For example, it's ok to return a list of month names, but not a list of usernames. A good rule of thumb is that if the adapter data comes from static resources, such data is not PII - see android.view.ViewStructure#setDataIsSensitive(boolean) for more info.

Java documentation for android.widget.Adapter.getAutofillOptions().

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