title: Taro.onBackgroundAudioPlay(callback)
sidebar_label: onBackgroundAudioPlay
监听音乐播放。
支持情况:
类型
(callback: (res: TaroGeneral.CallbackResult) => void) => void
参数
参数 | 类型 | 说明 |
---|---|---|
callback | (res: TaroGeneral.CallbackResult) => void |
音乐播放事件的回调函数 |
让时间为你证明