Added in API level 30
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.
Summary
Public constructors | |
---|---|
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
Callback
public Callback ()
Public methods
onToastShown
Added in API level 30
public void onToastShown ()
Called when the toast is displayed on the screen.