In-App Messaging API
Toasts
Quick Start
import RundotGameAPI from '@series-inc/rundot-game-sdk/api'
// Simple toast
await RundotGameAPI.popups.showToast('Progress saved!')
// Toast with options
const actionTriggered = await RundotGameAPI.popups.showToast('Progress saved!', {
duration: 3000,
variant: 'success',
action: { label: 'Undo' },
})
if (actionTriggered) {
undoLastAction()
}Toast Options
Option
Type
Default
Description
Toast Variants
Actionable Toasts
API Reference
Method
Returns
Description
Best Practices
Last updated