NotificationChannel

Class of android.app · NotificationChannel.java · Android's reference

public final class NotificationChannel implements android.os.Parcelable

A channel of notifications.

Fields

public static final String DEFAULT_CHANNEL_ID = "miscellaneous" source

Constructors

public NotificationChannel(String id, CharSequence name, int importance) source

Methods

public String getId() source
public CharSequence getName() source
public void setName(CharSequence name) source
public int getImportance() source
public void setImportance(int importance) source
public String getDescription() source
public void setDescription(String description) source
public String getGroup() source
public void setGroup(String groupId) source
public boolean canShowBadge() source
public void setShowBadge(boolean showBadge) source
public boolean canBubble() source

No bubbles float over a desktop.

public void setAllowBubbles(boolean allowBubbles) empty body source
public boolean canBypassDnd() source

No do-not-disturb mode exists to bypass.

public void setBypassDnd(boolean bypassDnd) empty body source
public void enableLights(boolean lights) source
public boolean shouldShowLights() source
public void setLightColor(int argb) source
public int getLightColor() source
public void enableVibration(boolean vibration) source
public boolean shouldVibrate() source
public void setVibrationPattern(long[] vibrationPattern) source
public long[] getVibrationPattern() source
public void setSound(Uri sound, AudioAttributes audioAttributes) source
public Uri getSound() source
public AudioAttributes getAudioAttributes() source
public void setLockscreenVisibility(int lockscreenVisibility) source
public int getLockscreenVisibility() source
public void setConversationId(String parentChannelId, String conversationId) source
public String getParentChannelId() source
public String getConversationId() source
public boolean isImportantConversation() source

Only the user marks a conversation important, and no user setting exists here.

public int describeContents() source
public void writeToParcel(android.os.Parcel out, int f) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.