Skip to main content
Version: Next

Taro.onAudioInterruptionEnd(callback)

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

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

Parameters

ParameterTypeDescription
callback(res: CallbackResult) => voidThe callback function for the event that audio interruption ends.

API Support

APIWeChat Mini-ProgramH5React Native
Taro.onAudioInterruptionEnd✔️