diff --git a/Playback-states-&-service-states.md b/Playback-states-&-service-states.md index 711a712..212e153 100644 --- a/Playback-states-&-service-states.md +++ b/Playback-states-&-service-states.md @@ -6,11 +6,11 @@ -| Condition | Playback State | Service running | Service as Foreground | stopForeground() | -|----------------------------------|----------------|-----------------|-----------------------|--------------------------------------------| -| App starts, no resumable track | STOPPED | ✗ | ✗ | No | -| App starts, with resumable track | PAUSED | ✓ | ? | No | -| Active playing | PLAYING | ✓ | ✓ | No | -| Paused by the user | PAUSED | ✓ | ? | stopForeground(DETACH) | -| Playback has finished / idle | STOPPED | ? | ? | stopForeground() or stopForeground(DETACH) | -| | | | | | \ No newline at end of file +| Condition | Playback State | Service running | Service has notification | Service as Foreground | stopForeground() | registerMediaButtonReceiver | +|----------------------------------|----------------|-----------------|--------------------------|-----------------------|--------------------------------------------|--------------------------------------| +| App starts, no resumable track | STOPPED | ? | ✗ | ✗ | ✗ | Only possible if service is running. | +| App starts, with resumable track | PAUSED | ✓ | ✓ | ? | ✗ | ✓ | +| Active playing | PLAYING | ✓ | ✓ | ✓ | ✗ | ✓ | +| Paused by the user | PAUSED | ✓ | ✓ | ? | stopForeground(DETACH) | ✓ | +| Playback has finished / idle | STOPPED | ? | ? | ? | stopForeground() or stopForeground(DETACH) | Only possible if service is running. | +| | | | | | | | \ No newline at end of file