# NotificationChannelGroupCompat.Builder

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/app/NotificationChannelGroupCompat.Builder "View this page in Java")

<br />

```
class NotificationChannelGroupCompat.Builder
```

<br />

*** ** * ** ***

Builder class for[NotificationChannelGroupCompat](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationChannelGroupCompat)objects.

## Summary

|                                                                                                                            ### Public constructors                                                                                                                            |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationChannelGroupCompat.Builder#Builder(java.lang.String))`(id: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` Creates a notification channel group. |

|                                                               ### Public functions                                                                |
|---------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [NotificationChannelGroupCompat](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationChannelGroupCompat)                 | [build](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationChannelGroupCompat.Builder#build())`()` Creates a[NotificationChannelGroupCompat](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationChannelGroupCompat)instance.                                 |
| [NotificationChannelGroupCompat.Builder](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationChannelGroupCompat.Builder) | [setDescription](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationChannelGroupCompat.Builder#setDescription(java.lang.String))`(description: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?)` Sets the user visible description of this group. |
| [NotificationChannelGroupCompat.Builder](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationChannelGroupCompat.Builder) | [setName](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationChannelGroupCompat.Builder#setName(java.lang.CharSequence))`(name: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?)` 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)  

```
Builder(id: String)
```

Creates a notification channel group.  

|                                       Parameters                                        |
|-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|
| `id: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | The id of the group. Must be unique per package. The value may be truncated if it is too long. |

## Public functions

### build

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

```
fun build(): NotificationChannelGroupCompat
```

Creates a[NotificationChannelGroupCompat](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationChannelGroupCompat)instance.  

### setDescription

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

```
fun setDescription(description: String?): NotificationChannelGroupCompat.Builder
```

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)  

```
fun setName(name: CharSequence?): NotificationChannelGroupCompat.Builder
```

Sets the user visible name of this group. You can rename this group when the system locale changes by listening for the[ACTION_LOCALE_CHANGED](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.