IAdapter.GetAutofillOptions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a string representation of the adapter data that can help
android.service.autofill.AutofillService
autofill the view backed by the adapter.
public virtual string[]? GetAutofillOptions ();
abstract member GetAutofillOptions : unit -> string[]
override this.GetAutofillOptions : unit -> string[]
Returns
null
by default, unless implementations override it.
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.