Added in API level 30
Callback
abstract class Callback
kotlin.Any | |
↳ | android.widget.Toast.Callback |
Callback object to be called when the toast is shown or hidden.
Summary
Public constructors | |
---|---|
Callback() |
Public methods | |
---|---|
open Unit |
Called when the toast is hidden. |
open Unit |
Called when the toast is displayed on the screen. |
Public constructors
Callback
Callback()
Public methods
onToastShown
Added in API level 30
open fun onToastShown(): Unit
Called when the toast is displayed on the screen.