public class

NotificationChannelGroupCompat.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.core.app.NotificationChannelGroupCompat.Builder

Overview

Builder class for NotificationChannelGroupCompat objects.

Summary

Constructors
publicBuilder(java.lang.String id)

Creates a notification channel group.

Methods
public NotificationChannelGroupCompatbuild()

Creates a NotificationChannelGroupCompat instance.

public NotificationChannelGroupCompat.BuildersetDescription(java.lang.String description)

Sets the user visible description of this group.

public NotificationChannelGroupCompat.BuildersetName(java.lang.CharSequence name)

Sets the user visible name of this group.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(java.lang.String id)

Creates a notification channel group.

Parameters:

id: The id of the group. Must be unique per package. The value may be truncated if it is too long.

Methods

public NotificationChannelGroupCompat.Builder setName(java.lang.CharSequence name)

Sets the user visible name of this group. You can rename this group when the system locale changes by listening for the broadcast.

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

public NotificationChannelGroupCompat.Builder setDescription(java.lang.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.

Creates a NotificationChannelGroupCompat instance.