NotificationChannelGroupCompat.Builder

Added in 1.5.0

public class NotificationChannelGroupCompat.Builder


Builder class for NotificationChannelGroupCompat objects.

Summary

Public constructors

Creates a notification channel group.

Public methods

@NonNull NotificationChannelGroupCompat

Creates a NotificationChannelGroupCompat instance.

@NonNull NotificationChannelGroupCompat.Builder

Sets the user visible description of this group.

@NonNull NotificationChannelGroupCompat.Builder

Sets the user visible name of this group.

Public constructors

Builder

Added in 1.5.0
public Builder(@NonNull String id)

Creates a notification channel group.

Parameters
@NonNull String 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
public @NonNull NotificationChannelGroupCompat build()

Creates a NotificationChannelGroupCompat instance.

setDescription

Added in 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
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.