Join us for ⁠#Android11: The Beta Launch Show on June 3!

Toast.Callback

public static abstract class Toast.Callback
extends Object

java.lang.Object
   ↳ android.widget.Toast.Callback


Callback object to be called when the toast is shown or hidden.

Callback methods will be called on the looper thread used for the Toast object.

Summary

Public constructors

Toast.Callback()

Public methods

void onToastHidden()

Called when the toast is hidden.

void onToastShown()

Called when the toast is displayed on the screen.

Inherited methods

Public constructors

Toast.Callback

public Toast.Callback ()

Public methods

onToastHidden

public void onToastHidden ()

Called when the toast is hidden.

onToastShown

public void onToastShown ()

Called when the toast is displayed on the screen.