Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- playerNotificationManager.setNotificationListener(object : PlayerNotificationManager.NotificationListener {
- override fun onNotificationStarted(notificationId: Int, notification: Notification?) {
- startForeground(NOW_PLAYING_NOTIFICATION, notification)
- }
- override fun onNotificationCancelled(notificationId: Int) {
- }
- })
Add Comment
Please, Sign In to add comment