다음을 통해 공유


FillRequest.FlagManualRequest Field

Definition

Indicates autofill was explicitly requested by the user.

[Android.Runtime.IntDef(Fields=new System.String[] { "FlagManualRequest", "FlagCompatibilityModeRequest", "FlagSupportsFillDialog" }, Flag=true, Type="Android.Service.Autofill.FillRequest")]
[Android.Runtime.Register("FLAG_MANUAL_REQUEST", ApiSince=26)]
public const int FlagManualRequest = 1;
[<Android.Runtime.IntDef(Fields=new System.String[] { "FlagManualRequest", "FlagCompatibilityModeRequest", "FlagSupportsFillDialog" }, Flag=true, Type="Android.Service.Autofill.FillRequest")>]
[<Android.Runtime.Register("FLAG_MANUAL_REQUEST", ApiSince=26)>]
val mutable FlagManualRequest : int

Field Value

Value = 1

Implements

Attributes

Remarks

Indicates autofill was explicitly requested by the user.

Users typically make an explicit request to autofill a screen in two situations: <ul> <li>The app disabled autofill (using View#setImportantForAutofill(int). <li>The service could not figure out how to autofill a screen (but the user knows the service has data for that app). </ul>

This flag is particularly useful for the second case. For example, the service could offer a complex UI where the user can map which screen views belong to each user data, or it could offer a simpler UI where the user picks the data for just the view used to trigger the request (that would be the view whose android.app.assist.AssistStructure.ViewNode#isFocused() method returns true).

An explicit autofill request is triggered when the android.view.autofill.AutofillManager#requestAutofill(View) or android.view.autofill.AutofillManager#requestAutofill(View, int, android.graphics.Rect) is called. For example, standard android.widget.TextView views show an AUTOFILL option in the overflow menu that triggers such request.

Java documentation for android.service.autofill.FillRequest.FLAG_MANUAL_REQUEST.

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