Class of android.app · NotificationManager.java · Android's reference
public class NotificationManager
Notifications: recorded, not shown, as the host has no notification shade.
public static final int IMPORTANCE_UNSPECIFIED = -1000 sourcepublic static final int IMPORTANCE_NONE = 0 sourcepublic static final int IMPORTANCE_MIN = 1 sourcepublic static final int IMPORTANCE_LOW = 2 sourcepublic static final int IMPORTANCE_DEFAULT = 3 sourcepublic static final int IMPORTANCE_HIGH = 4 sourcepublic static final int IMPORTANCE_MAX = 5 sourcepublic static final int VISIBILITY_NO_OVERRIDE = -1000 sourcepublic void notify(int id, Notification notification) empty body sourcepublic void notify(String tag, int id, Notification notification) empty body sourcepublic void cancel(int id) empty body sourcepublic void cancel(String tag, int id) empty body sourcepublic void cancelAll() empty body sourcepublic void createNotificationChannel(NotificationChannel channel) sourcepublic void createNotificationChannels(List<NotificationChannel> list) sourcepublic NotificationChannel getNotificationChannel(String channelId) sourcepublic NotificationChannel getNotificationChannel(String channelId, String conversationId) sourceThe channel of the conversation, else its parent channel.
public List<NotificationChannel> getNotificationChannels() sourcepublic void deleteNotificationChannel(String channelId) sourcepublic void createNotificationChannelGroup(NotificationChannelGroup group) sourcepublic void createNotificationChannelGroups(List<NotificationChannelGroup> list) sourcepublic void deleteNotificationChannelGroup(String groupId) sourceDeletes the group and each channel in it.
public NotificationChannelGroup getNotificationChannelGroup(String channelGroupId) sourcepublic List<NotificationChannelGroup> getNotificationChannelGroups() sourcepublic boolean areNotificationsEnabled() sourcepublic int getImportance() sourceThe user set no importance for the app.
public void setNotificationDelegate(String delegate) sourcepublic String getNotificationDelegate() sourcepublic android.service.notification.StatusBarNotification[] getActiveNotifications() sourceMade 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.