Language

FillResponse.Builder.SetClientState(Bundle) Method

Definition

Sets a bundle with state that is passed to subsequent APIs that manipulate this response.

[Android.Runtime.Register("setClientState", "(Landroid/os/Bundle;)Landroid/service/autofill/FillResponse$Builder;", "", ApiSince=26)]
public Android.Service.Autofill.FillResponse.Builder SetClientState(Android.OS.Bundle? clientState);
[<Android.Runtime.Register("setClientState", "(Landroid/os/Bundle;)Landroid/service/autofill/FillResponse$Builder;", "", ApiSince=26)>]
member this.SetClientState : Android.OS.Bundle -> Android.Service.Autofill.FillResponse.Builder

Parameters

clientState
Bundle

The custom client state. This value may be null.

Returns

This builder. This value cannot be null.

Attributes

Remarks

Sets a bundle with state that is passed to subsequent APIs that manipulate this response.

You can use this bundle to store intermediate state that is passed to subsequent calls to AutofillService.onFillRequest(FillRequest,android.os.CancellationSignal,FillCallback) and AutofillService.onSaveRequest(SaveRequest,SaveCallback), and you can also retrieve it by calling FillEventHistory.Event.getClientState().

If this method is called on multiple FillResponse objects for the same screen, just the latest bundle is passed back to the service.

Android reference for android.service.autofill.FillResponse.Builder.setClientState.

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