NotificationChannelGroupCompat.Builder
public
static
class
NotificationChannelGroupCompat.Builder
extends Object
java.lang.Object | |
↳ | androidx.core.app.NotificationChannelGroupCompat.Builder |
Builder class for NotificationChannelGroupCompat
objects.
Summary
Public constructors | |
---|---|
Builder(String id)
Creates a notification channel group. |
Public methods | |
---|---|
NotificationChannelGroupCompat
|
build()
Creates a |
NotificationChannelGroupCompat.Builder
|
setDescription(String description)
Sets the user visible description of this group. |
NotificationChannelGroupCompat.Builder
|
setName(CharSequence name)
Sets the user visible name of this group. |
Inherited methods | |
---|---|
Public constructors
Builder
public Builder (String id)
Creates a notification channel group.
Parameters | |
---|---|
id |
String : The id of the group. Must be unique per package.
The value may be truncated if it is too long.
|
Public methods
build
public NotificationChannelGroupCompat build ()
Creates a NotificationChannelGroupCompat
instance.
Returns | |
---|---|
NotificationChannelGroupCompat |
setDescription
public NotificationChannelGroupCompat.Builder setDescription (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.
Parameters | |
---|---|
description |
String |
Returns | |
---|---|
NotificationChannelGroupCompat.Builder |
setName
public NotificationChannelGroupCompat.Builder setName (CharSequence name)
Sets the user visible name of this group.
You can rename this group when the system locale changes by listening for the
Intent.ACTION_LOCALE_CHANGED
broadcast.
The recommended maximum length is 40 characters; the value may be truncated if it is too long.
Parameters | |
---|---|
name |
CharSequence |
Returns | |
---|---|
NotificationChannelGroupCompat.Builder |