Skip to main content
Version: 3.x

Taro.offAppHide(callback)

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

Reference

Type

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

Parameters

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

API Support

APIWeChat Mini-ProgramH5React Native
Taro.offAppHide✔️