# wx.onAudioInterruptionBegin(function callback)

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

with Promise style call: Not supported

Mini Program plugin: Support, need to Mini Program base library version no less than 2.15.0

Listen audio is interrupted by system occupation. Start event. The following scenarios trigger this event: alarm clock, phone, FaceTime Call, WeChat voice chat, WeChat video chat. When this event is triggered, all audio in the Mini Program will pause.

# parameter

# function callback

A callback to the start event that the audio was interrupted due to system occupation