# wx.onAudioInterruptionBegin(function callback)

Start from base library version 1.8.0. Please remaining backward compatible.

Listens on the event that audio interruption starts due to system occupation. This event is triggered by the following scenarios: alarm, phone call, FaceTime call, WeChat voice chat, and WeChat video chat. After the event is triggered, all audio files in the Mini Program are paused.

# Parameters

# function callback

The callback function for the event that audio interruption starts due to system occupation.

点击咨询小助手