Taro.onBackgroundAudioPlay(callback)
Listens on the music playback event.
Type
(callback: (res: CallbackResult) => void) => void
Parameters
Property | Type | Description |
---|---|---|
callback | (res: CallbackResult) => void | The callback function for the music playback event. |
API Support
API | WeChat Mini-Program | H5 | React Native |
---|---|---|---|
Taro.onBackgroundAudioPlay | ✔️ |