NotificationChannelGroupCompat.Builder

Added in 1.5.0

class NotificationChannelGroupCompat.Builder


Builder class for NotificationChannelGroupCompat objects.

Summary

Public constructors

Creates a notification channel group.

Public functions

NotificationChannelGroupCompat

Creates a NotificationChannelGroupCompat instance.

NotificationChannelGroupCompat.Builder
setDescription(description: String?)

Sets the user visible description of this group.

NotificationChannelGroupCompat.Builder

Sets the user visible name of this group.

Public constructors

Builder

Added in 1.5.0
Builder(id: String)

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 functions

build

Added in 1.5.0
fun build(): NotificationChannelGroupCompat

Creates a NotificationChannelGroupCompat instance.

setDescription

Added in 1.5.0
fun setDescription(description: String?): NotificationChannelGroupCompat.Builder

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
fun setName(name: CharSequence?): NotificationChannelGroupCompat.Builder

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.