NotificationChannelCompat

public class NotificationChannelCompat


A representation of settings that apply to a collection of similarly themed notifications. Setters return this to allow chaining. This class doesn't do anything on older SDKs which don't support Notification Channels.

Summary

Nested types

NotificationChannelCompat.Builder

Builder class for NotificationChannelCompat objects.

Constants

static final String

The id of the default channel for an app.

Public constructors

Public methods

boolean

Returns whether notifications posted to this channel are allowed to display outside of the notification shade, in a floating window on top of other apps.

boolean

Whether or not notifications posted to this channel can bypass the Do Not Disturb INTERRUPTION_FILTER_PRIORITY mode.

boolean

Returns whether notifications posted to this channel can appear as badges in a Launcher application.

@Nullable AudioAttributes

Returns the audio attributes for sound played by notifications posted to this channel.

@Nullable String

Returns the id of the conversation backing this channel, if it's associated with a conversation.

@Nullable String

Returns the user visible description of this channel.

@Nullable String

Returns what group this channel belongs to.

@NonNull String

Returns the id of this channel.

int

Returns the user specified importance e.g.

int

Returns the notification light color for notifications posted to this channel.

@NotificationCompat.NotificationVisibility int

Returns whether or not notifications posted to this channel are shown on the lockscreen in full or redacted form.

@Nullable CharSequence

Returns the user visible name of this channel.

@Nullable String

Returns the id of the parent notification channel to this channel, if it's a conversation related channel.

@Nullable Uri