NotificationChannelGroupCompat.Builder
public class NotificationChannelGroupCompat.Builder
Builder class for NotificationChannelGroupCompat objects.
Summary
Public methods |
|
|---|---|
@NonNull NotificationChannelGroupCompat |
build()Creates a |
@NonNull NotificationChannelGroupCompat.Builder |
setDescription(@Nullable String description)Sets the user visible description of this group. |
@NonNull NotificationChannelGroupCompat.Builder |
setName(@Nullable CharSequence name)Sets the user visible name of this group. |
Public constructors
Public methods
build
public @NonNull NotificationChannelGroupCompat build()
Creates a NotificationChannelGroupCompat instance.
setDescription
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
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 ACTION_LOCALE_CHANGED broadcast.
The recommended maximum length is 40 characters; the value may be truncated if it is too long.