Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
全部,
我正在使用 Notification.Builder setSound(sound) 通知用户,并希望在声音停止播放时收到通知。我可以想到两种方法:1)为 Builder 注册一个监听器并获得通知。2)如果仍在播放,请查看媒体播放器,然后再决定。
由于我不确定如何在 Notification 类中实现 setSound 功能,请您指教。谢谢你。