feat: Discord Rich Presence ueber das Discord Social SDK (v1.1.0)

This commit is contained in:
2026-09-27 02:41:46 +02:00
parent f347eb1c0a
commit 7697bcfaee
12 changed files with 334 additions and 12 deletions
@@ -84,6 +84,7 @@ class PlaybackService : Service() {
PlaybackHub.listener = null
main.removeCallbacksAndMessages(null)
releaseWakeLock()
DiscordPresence.shutdown()
session.release()
super.onDestroy()
}
@@ -113,6 +114,7 @@ class PlaybackService : Service() {
manager.notify(NOTIFICATION_ID, buildNotification(info))
}
if (info.playing) acquireWakeLock() else releaseWakeLock()
DiscordPresence.update(PresencePlan.from(info, System.currentTimeMillis()))
}
private fun playbackState(info: NowPlaying): PlaybackStateCompat {