bn.hideToast
▸ hideToast(): Promise<void>
description The api to hide the toast created by showToast
remark supported jssdk >= 1.1.0
example
bn.showToast({
title: 'Success!',
icon: 'success',
duration: 2000
}).then(()=>{
setTimeout(()=>{
bn.hideToast().then(()=>{
console.log('manual hide the toast')
})
},1000)
})
Returns
Promise<void>