NotificationChannelGroupCompat

open class NotificationChannelGroupCompat
kotlin.Any
   ↳ androidx.core.app.NotificationChannelGroupCompat

A grouping of related notification channels. e.g., channels that all belong to a single account. Setters return this to allow chaining. This class doesn't do anything on older SDKs which don't support Notification Channels.

Summary

Nested classes
open

Builder class for NotificationChannelGroupCompat objects.

Public methods
open MutableList<NotificationChannelCompat!>

Returns the list of channels that belong to this group.

open String?

Gets the user visible description of the group.

open String

Gets the id of the group.

open CharSequence?

Gets the user visible name of the group.

open Boolean

Returns whether or not notifications posted to NotificationChannelCompat belonging to this group are blocked.

open NotificationChannelGroupCompat.Builder

Creates a Builder instance with all the writeable property values of this instance.

Public methods

getChannels

@NonNull open fun getChannels(): MutableList<NotificationChannelCompat!>

Returns the list of channels that belong to this group.

This is a read-only property which is only valid on instances fetched from the NotificationManagerCompat.

getDescription

@Nullable open fun getDescription(): String?

Gets the user visible description of the group.

getId

@NonNull open fun getId(): String

Gets the id of the group.

getName

@Nullable open fun getName(): CharSequence?

Gets the user visible name of the group.

isBlocked

open fun isBlocked(): Boolean

Returns whether or not notifications posted to NotificationChannelCompat belonging to this group are blocked. This value is independent of NotificationManagerCompat#areNotificationsEnabled() and NotificationChannelCompat#getImportance().

This value is always false before android.os.Build.VERSION_CODES#P

This is a read-only property which is only valid on instances fetched from the NotificationManagerCompat.

toBuilder

@NonNull open fun toBuilder(): NotificationChannelGroupCompat.Builder

Creates a Builder instance with all the writeable property values of this instance.