showToast
Start from API_LEVEL
2.0
. Please refer to API_LEVEL.
Display Message Prompt Box.
Type
function showToast(option: Option): void
Parameters
Option
Property | Type | Required | DefaultValue | Description | API_LEVEL |
---|---|---|---|---|---|
content | string | Y | - | Content of the prompt | 2.0 |
Example
import { showToast } from '@zos/interaction'
showToast({
content: 'hello world',
})