bn.onAudioInterruptionBegin
▸ onAudioInterruptionBegin(cb
): void
description
Listen audio is interrupted by system occupation. Start event.
The following scenarios trigger this event: alarm clock, phone, FaceTime Call, voice chat, video chat. When this event is triggered, all audio in the Mini Program will pause.
example
bn.onAudioInterruptionBegin(() => {
console.log('audio interruption begins')
})
Parameters
Name | Type |
---|---|
cb | AudioInterruptionCallback |
Returns
void
AudioInterruptionCallback
Ƭ AudioInterruptionCallback: () => void
Type declaration
▸ (): void
Returns
void