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.
Type
(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 | ✔️ |