# MediaSessionService.ShowNotificationForIdlePlayerMode

# MediaSessionService.ShowNotificationForIdlePlayerMode

Artifact:[androidx.media3:media3-session](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/session/MediaSessionService.java+class:androidx.media3.session.MediaSessionService.ShowNotificationForIdlePlayerMode)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/session/MediaSessionService.ShowNotificationForIdlePlayerMode "View this page in Java")

<br />

```
@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = ElementType.TYPE_USE)
@IntDef(value = )
annotation MediaSessionService.ShowNotificationForIdlePlayerMode
```

<br />

*** ** * ** ***

The behavior for showing notifications when the[Player](https://developer.android.com/reference/kotlin/androidx/media3/common/Player)is in[STATE_IDLE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_IDLE()).

One of[SHOW_NOTIFICATION_FOR_IDLE_PLAYER_ALWAYS](https://developer.android.com/reference/kotlin/androidx/media3/session/MediaSessionService#SHOW_NOTIFICATION_FOR_IDLE_PLAYER_ALWAYS()),[SHOW_NOTIFICATION_FOR_IDLE_PLAYER_NEVER](https://developer.android.com/reference/kotlin/androidx/media3/session/MediaSessionService#SHOW_NOTIFICATION_FOR_IDLE_PLAYER_NEVER()),[SHOW_NOTIFICATION_FOR_IDLE_PLAYER_AFTER_STOP_OR_ERROR](https://developer.android.com/reference/kotlin/androidx/media3/session/MediaSessionService#SHOW_NOTIFICATION_FOR_IDLE_PLAYER_AFTER_STOP_OR_ERROR()).

The default value is[SHOW_NOTIFICATION_FOR_IDLE_PLAYER_AFTER_STOP_OR_ERROR](https://developer.android.com/reference/kotlin/androidx/media3/session/MediaSessionService#SHOW_NOTIFICATION_FOR_IDLE_PLAYER_AFTER_STOP_OR_ERROR()).