Skip to main content
Version: Next

Taro.offAppShow(callback)

Un-listens on the event that Mini Program is switched to foreground.

Reference

Type

(callback: (res: CallbackResult) => void) => void

Parameters

PropertyTypeDescription
callback(res: CallbackResult) => voidThe callback function for the event that Mini Program is switched to foreground.

API Support

APIWeChat Mini-ProgramH5React Native
Taro.offAppShow✔️