Companion
object Companion
Functions
Link copied to clipboard
fun makeToast(context: Context, position: OverlayPosition = DefaultToastPosition, duration: Long? = OverlayManager.OVERLAY_DURATION_SLOW_MILLIS, animationSpec: OverlayAnimationSpec? = position.getAnimationSpec(), factory: (Context, OverlayEntry) -> View): Toast
Создаёт настраиваемый экземпляр Toast с заданными параметрами.
Link copied to clipboard
fun simpleToast(context: Context, message: String, contentStart: Drawable? = null, contentEnd: Drawable? = null, @StyleRes toastStyleOverlay: Int? = null, duration: Long? = OverlayManager.OVERLAY_DURATION_SLOW_MILLIS, position: OverlayPosition = DefaultToastPosition, animationSpec: OverlayAnimationSpec? = position.getAnimationSpec()): Toast
Создаёт простой Toast с текстом и дополнительными иконками.