See how Capacitor fits into the entire Ionic Ecosystem ->
Capacitor is part of the Ionic Ecosystem ->

@capacitor/toast

The Toast API provides a notification pop up for displaying important information to a user. Just like real toast!

Install

npm install @capacitor/toast
npx cap sync

API

show(…)

show(options: ToastShowOptions) => Promise<void>

Shows a Toast on the screen

Param Type
options ToastShowOptions

Since: 1.0.0


Interfaces

ToastShowOptions

Prop Type Description Default Since
text string Text to display on the Toast 1.0.0
duration "short" | "long" Duration of the Toast, either ‘short’ (2000ms) or ‘long’ (3500ms) 'short' 1.0.0
position "top" | "center" | "bottom" Postion of the Toast 'bottom' 1.0.0
Previous
<- Text Zoom
Next
Overview ->