Android 12 Developer Preview is here! Try it out, and give us your feedback!

OnFailureListener

public interface OnFailureListener

com.google.android.play.core.tasks.OnFailureListener


Listener called when a Task fails with an exception.

Summary

Public methods

abstract void onFailure(Exception e)

Called when the Task fails with an exception.

Public methods

onFailure

public abstract void onFailure (Exception e)

Called when the Task fails with an exception.

Parameters
e Exception: the exception that caused the Task to fail. Never null