Skip to content

Toast Module

AviShek Adhikari edited this page Aug 15, 2020 · 2 revisions

Toast Module

Description:

This module provides toast function to all the string objects.

Examples/Usages:

For short toasts

"Checking Toast".toast().lazy()

For Long Toasts

"Checking Toast".toast(Toast.LENGTH_LONG).lazy()

Functions:

.toast(time: Int = Toast.LENGTH_SHORT) -> it takes one parameter as integer which is used to pass time to the toast which is optional

Clone this wiki locally