withLength

fun withLength(@IntRange(from = 0.toLong(), to = 1.toLong()length: Int): ToastConfigurationBuilder

One of {@link android.widget.Toast#LENGTH_LONG} and {@link android.widget.Toast#LENGTH_SHORT}

Since

5.0.0

Return

this instance

See also

android.widget.Toast

#makeText(Context, int, int)

Parameters

length

toast length