Skip to main content
Version: v3+

showToast(option)

Start from API_LEVEL 2.0 . Please refer to API_LEVEL.

show_toast

Show Toast with \n text line feed support.

Type

(option: Option) => void

Parameters

Option: object

PropertiesDescriptionType
textThe text content of toast.string

Code examples

import { showToast } from '@zos/ui'

Page({
build() {
showToast({
text: 'Hello\nZepp OS'
})
}
})