Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.
Added in API level 18

android.service.notification

Classes

Adjustment Ranking updates from the Assistant. 
Condition The current condition of an AutomaticZenRule, provided by the app that owns the rule. 
ConditionProviderService This class was deprecated in API level Q. Instead of using an automatically bound service, use NotificationManager.setAutomaticZenRuleState(String, Condition) to tell the system about the state of your rule. In order to maintain a link from Settings to your rule configuration screens, provide a configuration activity that handles NotificationManager.ACTION_AUTOMATIC_ZEN_RULE on your AutomaticZenRule via AutomaticZenRule.setConfigurationActivity(ComponentName). 
NotificationAssistantService A service that helps the user manage notifications. 
NotificationListenerService A service that receives calls from the system when new notifications are posted or removed, or their ranking changed. 
NotificationListenerService.Ranking Stores ranking related information on a currently active notification. 
NotificationListenerService.RankingMap Provides access to ranking information on currently active notifications. 
NotificationStats  
StatusBarNotification Class encapsulating a Notification. 
ZenPolicy ZenPolicy determines whether to allow certain notifications and their corresponding sounds to play when a device is in Do Not Disturb mode. 
ZenPolicy.Builder Builder class for ZenPolicy objects.