title: Taro.onAudioInterruptionEnd(callback)

sidebar_label: onAudioInterruptionEnd

Listens on the event that audio interruption ends. After the onAudioInterruptionBegin event is received, all audio files in the Mini Program are paused. After the event is received, audio files can be played again.

Reference

Type

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

Parameters

Parameter Type Description
callback (res: CallbackResult) => void The callback function for the event that audio interruption ends.

API Support

API WeChat Mini-Program H5 React Native
Taro.onAudioInterruptionEnd ✔️