FillResponse.Builder.DisableAutofill(Int64) 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.
Disables autofill for the app or activity.
[Android.Runtime.Register("disableAutofill", "(J)Landroid/service/autofill/FillResponse$Builder;", "", ApiSince=28)]
public Android.Service.Autofill.FillResponse.Builder DisableAutofill(long duration);
[<Android.Runtime.Register("disableAutofill", "(J)Landroid/service/autofill/FillResponse$Builder;", "", ApiSince=28)>]
member this.DisableAutofill : int64 -> Android.Service.Autofill.FillResponse.Builder
Parameters
- duration
- Int64
duration to disable autofill, in milliseconds.
Returns
this builder. This value cannot be null.
- Attributes
Remarks
Disables autofill for the app or activity.
This method is useful to optimize performance in cases where the service knows it can not autofill an app—for example, when the service has a list of "denylisted" apps such as office suites.
By default, it disables autofill for all activities in the app, unless the response is flagged with FillResponse.FLAG_DISABLE_ACTIVITY_ONLY.
Autofill for the app or activity is automatically re-enabled after any of the following conditions: duration milliseconds have passed; The autofill service for the user has changed; The device has rebooted.
Note: Activities that are running when autofill is re-enabled remain disabled for autofill until they finish and restart.
Android reference for android.service.autofill.FillResponse.Builder.disableAutofill.
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.