AutofillService.OnFillRequest Method

Definition

Called by the Android system do decide if a screen can be autofilled by the service.

[Android.Runtime.Register("onFillRequest", "(Landroid/service/autofill/FillRequest;Landroid/os/CancellationSignal;Landroid/service/autofill/FillCallback;)V", "GetOnFillRequest_Landroid_service_autofill_FillRequest_Landroid_os_CancellationSignal_Landroid_service_autofill_FillCallback_Handler", ApiSince=26)]
public abstract void OnFillRequest (Android.Service.Autofill.FillRequest request, Android.OS.CancellationSignal cancellationSignal, Android.Service.Autofill.FillCallback callback);
[<Android.Runtime.Register("onFillRequest", "(Landroid/service/autofill/FillRequest;Landroid/os/CancellationSignal;Landroid/service/autofill/FillCallback;)V", "GetOnFillRequest_Landroid_service_autofill_FillRequest_Landroid_os_CancellationSignal_Landroid_service_autofill_FillCallback_Handler", ApiSince=26)>]
abstract member OnFillRequest : Android.Service.Autofill.FillRequest * Android.OS.CancellationSignal * Android.Service.Autofill.FillCallback -> unit

Parameters

request
FillRequest

the FillRequest request to handle. See FillResponse for examples of multiple-sections requests.

cancellationSignal
CancellationSignal

signal for observing cancellation requests. The system will use this to notify you that the fill result is no longer needed and you should stop handling this fill request in order to save resources.

callback
FillCallback

object used to notify the result of the request.

Attributes

Remarks

Called by the Android system do decide if a screen can be autofilled by the service.

Service must call one of the FillCallback methods (like FillCallback#onSuccess(FillResponse) or FillCallback#onFailure(CharSequence)) to notify the result of the request.

Java documentation for android.service.autofill.AutofillService.onFillRequest(android.service.autofill.FillRequest, android.os.CancellationSignal, android.service.autofill.FillCallback).

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