NotificationManager

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

public class NotificationManager

Notifications: recorded, not shown, as the host has no notification shade.

Fields

public static final int IMPORTANCE_UNSPECIFIED = -1000 source
public static final int IMPORTANCE_NONE = 0 source
public static final int IMPORTANCE_MIN = 1 source
public static final int IMPORTANCE_LOW = 2 source
public static final int IMPORTANCE_DEFAULT = 3 source
public static final int IMPORTANCE_HIGH = 4 source
public static final int IMPORTANCE_MAX = 5 source
public static final int VISIBILITY_NO_OVERRIDE = -1000 source

Methods

public void notify(int id, Notification notification) empty body source
public void notify(String tag, int id, Notification notification) empty body source
public void cancel(int id) empty body source
public void cancel(String tag, int id) empty body source
public void cancelAll() empty body source
public void createNotificationChannel(NotificationChannel channel) source
public void createNotificationChannels(List<NotificationChannel> list) source
public NotificationChannel getNotificationChannel(String channelId) source
public NotificationChannel getNotificationChannel(String channelId, String conversationId) source

The channel of the conversation, else its parent channel.

public List<NotificationChannel> getNotificationChannels() source
public void deleteNotificationChannel(String channelId) source
public void createNotificationChannelGroup(NotificationChannelGroup group) source
public void createNotificationChannelGroups(List<NotificationChannelGroup> list) source
public void deleteNotificationChannelGroup(String groupId) source

Deletes the group and each channel in it.

public NotificationChannelGroup getNotificationChannelGroup(String channelGroupId) source
public List<NotificationChannelGroup> getNotificationChannelGroups() source
public boolean areNotificationsEnabled() source
public int getImportance() source

The user set no importance for the app.

public void setNotificationDelegate(String delegate) source
public String getNotificationDelegate() source
public android.service.notification.StatusBarNotification[] getActiveNotifications() 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.