only / com.skydoves.only / android.content.Context

Extensions for android.content.Context

onlyOnceToast

shows toast only once.

fun Context.onlyOnceToast(name: String, text: String): Unit

onlyThriceToast

shows toast only thrice

fun Context.onlyThriceToast(name: String, text: String): Unit

onlyToast

shows toast only x times.

fun Context.onlyToast(name: String, times: Int, text: String): Unit

onlyTwiceToast

shows toast only twice.

fun Context.onlyTwiceToast(name: String, text: String): Unit