# MediaNotification.Provider.NotificationChannelInfo

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/MediaNotification.java+class:androidx.media3.session.MediaNotification.Provider.NotificationChannelInfo)

*** ** * ** ***


```
public class MediaNotification.Provider.NotificationChannelInfo
```

<br />

*** ** * ** ***

Properties of the notification channel used for the notification.

## Summary

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/session/MediaNotification.Provider.NotificationChannelInfo#id()` |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/session/MediaNotification.Provider.NotificationChannelInfo#name()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/session/MediaNotification.Provider.NotificationChannelInfo#NotificationChannelInfo(java.lang.String,java.lang.String)(https://developer.android.com/reference/java/lang/String.html id, https://developer.android.com/reference/java/lang/String.html name)` Creates an instance. |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/session/MediaNotification.Provider.NotificationChannelInfo#getId()()` Returns the channel ID. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/session/MediaNotification.Provider.NotificationChannelInfo#getName()()` Returns the channel name. |

## Public fields

### id

```
public final String id
```

### name

```
public final String name
```

## Public constructors

### NotificationChannelInfo

```
public NotificationChannelInfo(String id, String name)
```

Creates an instance.

## Public methods

### getId

```
public String getId()
```

Returns the channel ID.

### getName

```
public String getName()
```

Returns the channel name.