showToast(option)
Start from API_LEVEL
2.0. Please refer to API_LEVEL.

Show Toast with \n text line feed support.
Type
(option: Option) => void
Parameters
Option: object
| Properties | Description | Type |
|---|---|---|
| text | The text content of toast. | string |
Code examples
import { showToast } from '@zos/ui'
Page({
build() {
showToast({
text: 'Hello\nZepp OS'
})
}
})