Share via


SaveCallback.OnSuccess Method

Definition

Overloads

OnSuccess()

Notifies the Android System that an AutofillService#onSaveRequest(SaveRequest, SaveCallback) was successfully handled by the service.

OnSuccess(IntentSender)

Notifies the Android System that an AutofillService#onSaveRequest(SaveRequest, SaveCallback) was successfully handled by the service.

OnSuccess()

Notifies the Android System that an AutofillService#onSaveRequest(SaveRequest, SaveCallback) was successfully handled by the service.

[Android.Runtime.Register("onSuccess", "()V", "", ApiSince=26)]
public void OnSuccess ();
[<Android.Runtime.Register("onSuccess", "()V", "", ApiSince=26)>]
member this.OnSuccess : unit -> unit
Attributes

Remarks

Notifies the Android System that an AutofillService#onSaveRequest(SaveRequest, SaveCallback) was successfully handled by the service.

Java documentation for android.service.autofill.SaveCallback.onSuccess().

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

OnSuccess(IntentSender)

Notifies the Android System that an AutofillService#onSaveRequest(SaveRequest, SaveCallback) was successfully handled by the service.

[Android.Runtime.Register("onSuccess", "(Landroid/content/IntentSender;)V", "", ApiSince=28)]
public void OnSuccess (Android.Content.IntentSender intentSender);
[<Android.Runtime.Register("onSuccess", "(Landroid/content/IntentSender;)V", "", ApiSince=28)>]
member this.OnSuccess : Android.Content.IntentSender -> unit

Parameters

intentSender
IntentSender

intent that will be launched from the context of activity being autofilled.

Attributes

Remarks

Notifies the Android System that an AutofillService#onSaveRequest(SaveRequest, SaveCallback) was successfully handled by the service.

This method is useful when the service requires extra work&mdash;for example, launching an activity asking the user to authenticate first &mdash;before it can process the request, as the intent will be launched from the context of the activity being autofilled and hence will be part of that activity's stack.

Java documentation for android.service.autofill.SaveCallback.onSuccess(android.content.IntentSender).

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