# PlayerNotificationManager.Builder

# PlayerNotificationManager.Builder

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/ui/PlayerNotificationManager.Builder "View this page in Java")

<br />

```
class PlayerNotificationManager.Builder
```

<br />

*** ** * ** ***

A builder for[PlayerNotificationManager](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager)instances.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#Builder(android.content.Context,int,java.lang.String))`(` ` context: `[Context](https://developer.android.com/reference/android/content/Context.html)`!,` ` notificationId: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 1) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` channelId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` `)` Creates an instance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ~~[Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#Builder(android.content.Context,int,java.lang.String,androidx.media3.ui.PlayerNotificationManager.MediaDescriptionAdapter))~~`(` ` context: `[Context](https://developer.android.com/reference/android/content/Context.html)`!,` ` notificationId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` channelId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!,` ` mediaDescriptionAdapter: `[PlayerNotificationManager.MediaDescriptionAdapter](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.MediaDescriptionAdapter)`!` `)` **This function is deprecated.** Use[Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#Builder(android.content.Context,int,java.lang.String))instead, then call[setMediaDescriptionAdapter](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setMediaDescriptionAdapter(androidx.media3.ui.PlayerNotificationManager.MediaDescriptionAdapter)). <br /> |

|                                                            ### Public functions                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PlayerNotificationManager](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager)`!`                 | [build](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#build())`()` Builds the[PlayerNotificationManager](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager).                                                                                                                                                                                                                                                                                                                                                                                    |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setChannelDescriptionResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setChannelDescriptionResourceId(int))`(channelDescriptionResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` The description of the channel.                                                                                                                                                                                                                                                                                                                      |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setChannelImportance](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setChannelImportance(int))`(@`[NotificationUtil.Importance](https://developer.android.com/reference/kotlin/androidx/media3/common/util/NotificationUtil.Importance)` channelImportance: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` The importance of the channel.                                                                                                                                                                                                               |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setChannelNameResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setChannelNameResourceId(int))`(channelNameResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` The name of the channel.                                                                                                                                                                                                                                                                                                                                                  |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setCustomActionReceiver](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setCustomActionReceiver(androidx.media3.ui.PlayerNotificationManager.CustomActionReceiver))`(` ` customActionReceiver: `[PlayerNotificationManager.CustomActionReceiver](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.CustomActionReceiver)`!` `)` The[CustomActionReceiver](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.CustomActionReceiver)to be used.                                                          |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setFastForwardActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setFastForwardActionIconResourceId(int))`(` ` fastForwardActionIconResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) `)` The resource id of the drawable to be used as the icon of action[ACTION_FAST_FORWARD](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_FAST_FORWARD()).                                                                                                                              |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setGroup](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setGroup(java.lang.String))`(groupKey: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!)` The key of the group the media notification should belong to.                                                                                                                                                                                                                                                                                                                                      |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setMediaDescriptionAdapter](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setMediaDescriptionAdapter(androidx.media3.ui.PlayerNotificationManager.MediaDescriptionAdapter))`(` ` mediaDescriptionAdapter: `[PlayerNotificationManager.MediaDescriptionAdapter](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.MediaDescriptionAdapter)`!` `)` The[MediaDescriptionAdapter](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.MediaDescriptionAdapter)to be queried for the notification contents. |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setNextActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setNextActionIconResourceId(int))`(nextActionIconResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` The resource id of the drawable to be used as the icon of action[ACTION_NEXT](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_NEXT()).                                                                                                                                                                        |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setNotificationListener](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setNotificationListener(androidx.media3.ui.PlayerNotificationManager.NotificationListener))`(` ` notificationListener: `[PlayerNotificationManager.NotificationListener](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.NotificationListener)`!` `)` The[NotificationListener](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.NotificationListener)to be used.                                                          |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setPauseActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setPauseActionIconResourceId(int))`(pauseActionIconResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` The resource id of the drawable to be used as the icon of action[ACTION_PAUSE](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_PAUSE()).                                                                                                                                                                   |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setPlayActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setPlayActionIconResourceId(int))`(playActionIconResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` The resource id of the drawable to be used as the icon of action[ACTION_PLAY](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_PLAY()).                                                                                                                                                                        |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setPreviousActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setPreviousActionIconResourceId(int))`(previousActionIconResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` The resource id of the drawable to be used as the icon of action[ACTION_PREVIOUS](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_PREVIOUS()).                                                                                                                                                    |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setRewindActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setRewindActionIconResourceId(int))`(rewindActionIconResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` The resource id of the drawable to be used as the icon of action[ACTION_REWIND](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_REWIND()).                                                                                                                                                              |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setSmallIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setSmallIconResourceId(int))`(smallIconResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` The resource id of the small icon of the notification shown in the status bar.                                                                                                                                                                                                                                                                                                  |
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | [setStopActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setStopActionIconResourceId(int))`(stopActionIconResourceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` The resource id of the drawable to be used as the icon of action[ACTION_STOP](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_STOP()).                                                                                                                                                                        |

|                                                                          ### Protected properties                                                                           |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [channelDescriptionResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#channelDescriptionResourceId())       |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!`                                                                                        | [channelId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#channelId())                                             |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [channelImportance](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#channelImportance())                             |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [channelNameResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#channelNameResourceId())                     |
| [Context](https://developer.android.com/reference/android/content/Context.html)`!`                                                                                          | [context](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#context())                                                 |
| [PlayerNotificationManager.CustomActionReceiver](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.CustomActionReceiver)`?`       | [customActionReceiver](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#customActionReceiver())                       |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [fastForwardActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#fastForwardActionIconResourceId()) |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?`                                                                                        | [groupKey](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#groupKey())                                               |
| [PlayerNotificationManager.MediaDescriptionAdapter](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.MediaDescriptionAdapter)`!` | [mediaDescriptionAdapter](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#mediaDescriptionAdapter())                 |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [nextActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#nextActionIconResourceId())               |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [notificationId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#notificationId())                                   |
| [PlayerNotificationManager.NotificationListener](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.NotificationListener)`?`       | [notificationListener](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#notificationListener())                       |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [pauseActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#pauseActionIconResourceId())             |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [playActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#playActionIconResourceId())               |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [previousActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#previousActionIconResourceId())       |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [rewindActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#rewindActionIconResourceId())           |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [smallIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#smallIconResourceId())                         |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                 | [stopActionIconResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#stopActionIconResourceId())               |

## Public constructors

### Builder

```
Builder(
    context: Context!,
    notificationId: @IntRange(from = 1) Int,
    channelId: String!
)
```

Creates an instance.  

|                                                                                             Parameters                                                                                             |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `context: `[Context](https://developer.android.com/reference/android/content/Context.html)`!`                                                                                                      | The[Context](https://developer.android.com/reference/android/content/Context.html).                                                                                                                                                                                                                                                        |
| `notificationId: @`[IntRange](https://developer.android.com/reference/kotlin/androidx/annotation/IntRange)`(from = 1) `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The id of the notification to be posted. Must be greater than 0.                                                                                                                                                                                                                                                                           |
| `channelId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!`                                                                                                  | The id of the notification channel of an existing notification channel or of the channel that should be automatically created. In the latter case,[setChannelNameResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setChannelNameResourceId(int))needs to be called as well. |

### Builder

```
[Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#Builder(android.content.Context,int,java.lang.String,androidx.media3.ui.PlayerNotificationManager.MediaDescriptionAdapter))(
    context: Context!,
    notificationId: Int,
    channelId: String!,
    mediaDescriptionAdapter: PlayerNotificationManager.MediaDescriptionAdapter!
)
```
| **This function is deprecated.**   
|
Use[Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#Builder(android.content.Context,int,java.lang.String))instead, then call[setMediaDescriptionAdapter](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setMediaDescriptionAdapter(androidx.media3.ui.PlayerNotificationManager.MediaDescriptionAdapter)).  

## Public functions

### build

```
fun build(): PlayerNotificationManager!
```

Builds the[PlayerNotificationManager](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager).  

### setChannelDescriptionResourceId

```
fun setChannelDescriptionResourceId(channelDescriptionResourceId: Int): PlayerNotificationManager.Builder!
```

The description of the channel. Ignored if[setChannelNameResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setChannelNameResourceId(int))is not called with a value other than`0`. If the application has already created the notification channel, then this method should not be called.

The default is`0`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setChannelImportance

```
fun setChannelImportance(@NotificationUtil.Importance channelImportance: Int): PlayerNotificationManager.Builder!
```

The importance of the channel. Ignored if[setChannelNameResourceId](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#setChannelNameResourceId(int))is not called with a value other than`0`. If the application has already created the notification channel, then this method should not be called.

The default is[IMPORTANCE_LOW](https://developer.android.com/reference/kotlin/androidx/media3/common/util/NotificationUtil#IMPORTANCE_LOW()).  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setChannelNameResourceId

```
fun setChannelNameResourceId(channelNameResourceId: Int): PlayerNotificationManager.Builder!
```

The name of the channel. If set to a value other than`0`, the channel is automatically created when[build](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder#build())is called. If the application has already created the notification channel, then this method should not be called.

The default is`0`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setCustomActionReceiver

```
fun setCustomActionReceiver(
    customActionReceiver: PlayerNotificationManager.CustomActionReceiver!
): PlayerNotificationManager.Builder!
```

The[CustomActionReceiver](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.CustomActionReceiver)to be used.

The default is`null`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setFastForwardActionIconResourceId

```
fun setFastForwardActionIconResourceId(
    fastForwardActionIconResourceId: Int
): PlayerNotificationManager.Builder!
```

The resource id of the drawable to be used as the icon of action[ACTION_FAST_FORWARD](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_FAST_FORWARD()).

The default is`R.drawable#exo_notification_fastforward`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setGroup

```
fun setGroup(groupKey: String!): PlayerNotificationManager.Builder!
```

The key of the group the media notification should belong to.

The default is`null`  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setMediaDescriptionAdapter

```
fun setMediaDescriptionAdapter(
    mediaDescriptionAdapter: PlayerNotificationManager.MediaDescriptionAdapter!
): PlayerNotificationManager.Builder!
```

The[MediaDescriptionAdapter](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.MediaDescriptionAdapter)to be queried for the notification contents.

The default is[DefaultMediaDescriptionAdapter](https://developer.android.com/reference/kotlin/androidx/media3/ui/DefaultMediaDescriptionAdapter)with no[PendingIntent](https://developer.android.com/reference/android/app/PendingIntent.html)  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setNextActionIconResourceId

```
fun setNextActionIconResourceId(nextActionIconResourceId: Int): PlayerNotificationManager.Builder!
```

The resource id of the drawable to be used as the icon of action[ACTION_NEXT](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_NEXT()).

The default is`R.drawable#exo_notification_next`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setNotificationListener

```
fun setNotificationListener(
    notificationListener: PlayerNotificationManager.NotificationListener!
): PlayerNotificationManager.Builder!
```

The[NotificationListener](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.NotificationListener)to be used.

The default is`null`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setPauseActionIconResourceId

```
fun setPauseActionIconResourceId(pauseActionIconResourceId: Int): PlayerNotificationManager.Builder!
```

The resource id of the drawable to be used as the icon of action[ACTION_PAUSE](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_PAUSE()).

The default is`R.drawable#exo_notification_pause`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setPlayActionIconResourceId

```
fun setPlayActionIconResourceId(playActionIconResourceId: Int): PlayerNotificationManager.Builder!
```

The resource id of the drawable to be used as the icon of action[ACTION_PLAY](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_PLAY()).

The default is`R.drawable#exo_notification_play`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setPreviousActionIconResourceId

```
fun setPreviousActionIconResourceId(previousActionIconResourceId: Int): PlayerNotificationManager.Builder!
```

The resource id of the drawable to be used as the icon of action[ACTION_PREVIOUS](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_PREVIOUS()).

The default is`R.drawable#exo_notification_previous`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setRewindActionIconResourceId

```
fun setRewindActionIconResourceId(rewindActionIconResourceId: Int): PlayerNotificationManager.Builder!
```

The resource id of the drawable to be used as the icon of action[ACTION_REWIND](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_REWIND()).

The default is`R.drawable#exo_notification_rewind`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setSmallIconResourceId

```
fun setSmallIconResourceId(smallIconResourceId: Int): PlayerNotificationManager.Builder!
```

The resource id of the small icon of the notification shown in the status bar. See[setSmallIcon](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Builder#setSmallIcon(int)).

The default is`R.drawable#exo_notification_small_icon`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

### setStopActionIconResourceId

```
fun setStopActionIconResourceId(stopActionIconResourceId: Int): PlayerNotificationManager.Builder!
```

The resource id of the drawable to be used as the icon of action[ACTION_STOP](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager#ACTION_STOP()).

The default is`R.drawable#exo_notification_stop`.  

|                                                                   Returns                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------|
| [PlayerNotificationManager.Builder](https://developer.android.com/reference/kotlin/androidx/media3/ui/PlayerNotificationManager.Builder)`!` | This builder. |

## Protected properties

### channelDescriptionResourceId

```
protected val channelDescriptionResourceId: Int
```  

### channelId

```
protected val channelId: String!
```  

### channelImportance

```
protected val channelImportance: Int
```  

### channelNameResourceId

```
protected val channelNameResourceId: Int
```  

### context

```
protected val context: Context!
```  

### customActionReceiver

```
protected val customActionReceiver: PlayerNotificationManager.CustomActionReceiver?
```  

### fastForwardActionIconResourceId

```
protected val fastForwardActionIconResourceId: Int
```  

### groupKey

```
protected val groupKey: String?
```  

### mediaDescriptionAdapter

```
protected val mediaDescriptionAdapter: PlayerNotificationManager.MediaDescriptionAdapter!
```  

### nextActionIconResourceId

```
protected val nextActionIconResourceId: Int
```  

### notificationId

```
protected val notificationId: Int
```  

### notificationListener

```
protected val notificationListener: PlayerNotificationManager.NotificationListener?
```  

### pauseActionIconResourceId

```
protected val pauseActionIconResourceId: Int
```  

### playActionIconResourceId

```
protected val playActionIconResourceId: Int
```  

### previousActionIconResourceId

```
protected val previousActionIconResourceId: Int
```  

### rewindActionIconResourceId

```
protected val rewindActionIconResourceId: Int
```  

### smallIconResourceId

```
protected val smallIconResourceId: Int
```  

### stopActionIconResourceId

```
protected val stopActionIconResourceId: Int
```