> For the complete documentation index, see [llms.txt](https://docs.appkickstarter.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appkickstarter.com/ui-kit/toasts.md).

# 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.&#x20;

```

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
}


```
