# NotificationChannelGroupCompat.Builder

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/app/NotificationChannelGroupCompat.java+class:androidx.core.app.NotificationChannelGroupCompat.Builder) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

*** ** * ** ***


```
public class NotificationChannelGroupCompat.Builder
```

<br />

*** ** * ** ***

Builder class for `https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat` objects.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat.Builder#Builder(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html id)` Creates a notification channel group. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat` | `https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat.Builder#build()()` Creates a `https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat` instance. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat.Builder` | `https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat.Builder#setDescription(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html description)` Sets the user visible description of this group. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat.Builder` | `https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat.Builder#setName(java.lang.CharSequence)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html name)` Sets the user visible name of this group. |

## Public constructors

### Builder

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public Builder(@NonNull String id)
```

Creates a notification channel group.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html id` | The id of the group. Must be unique per package. The value may be truncated if it is too long. |

## Public methods

### build

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public @NonNull NotificationChannelGroupCompat build()
```

Creates a `https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat` instance.

### setDescription

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public @NonNull NotificationChannelGroupCompat.Builder setDescription(@Nullable String description)
```

Sets the user visible description of this group.

The recommended maximum length is 300 characters; the value may be truncated if it is too long.

### setName

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public @NonNull NotificationChannelGroupCompat.Builder setName(@Nullable CharSequence name)
```

Sets the user visible name of this group. You can rename this group when the system locale changes by listening for the `https://developer.android.com/reference/android/content/Intent.html#ACTION_LOCALE_CHANGED` broadcast.

The recommended maximum length is 40 characters; the value may be truncated if it is too long.