For the complete documentation index, see llms.txt. This page is also available as Markdown.

Toasts

AppKickstarter provides Android and iOS implementation for Toasts. All you have to do is getting the instance of the implemenatation and call showToast with the string or a UiMessage which can contains an id for a localized resource.


interface ToastMessageHandler {
    enum class Duration { LENGTH_SHORT, LENGTH_LONG }
    fun showToast(message: String?, duration: Duration = Duration.LENGTH_SHORT)
    fun showToast(uiMessage: UiMessage, duration: Duration = Duration.LENGTH_SHORT)
}
sealed interface UiMessage {
    data class Resource(val id: StringResource) : UiMessage
    data class Message(val message: String?) : UiMessage
}

Last updated