Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# android.service.notification

*** ** * ** ***

## Classes

|---|---|
| [Condition](https://developer.android.com/reference/android/service/notification/Condition) | The current condition of an `https://developer.android.com/reference/android/app/AutomaticZenRule`, provided by the app that owns the rule. |
| [ConditionProviderService](https://developer.android.com/reference/android/service/notification/ConditionProviderService) | *This class was deprecated in API level 29. Instead of using an automatically bound service, use `https://developer.android.com/reference/android/app/NotificationManager#setAutomaticZenRuleState(java.lang.String,%20android.service.notification.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 `https://developer.android.com/reference/android/app/NotificationManager#ACTION_AUTOMATIC_ZEN_RULE` on your `https://developer.android.com/reference/android/app/AutomaticZenRule` via `https://developer.android.com/reference/android/app/AutomaticZenRule#setConfigurationActivity(android.content.ComponentName)`.* |
| [NotificationListenerService](https://developer.android.com/reference/android/service/notification/NotificationListenerService) | A service that receives calls from the system when new notifications are posted or removed, or their ranking changed. |
| [NotificationListenerService.Ranking](https://developer.android.com/reference/android/service/notification/NotificationListenerService.Ranking) | Stores ranking related information on a currently active notification. |
| [NotificationListenerService.RankingMap](https://developer.android.com/reference/android/service/notification/NotificationListenerService.RankingMap) | Provides access to ranking information on currently active notifications. |
| [StatusBarNotification](https://developer.android.com/reference/android/service/notification/StatusBarNotification) | Class encapsulating a Notification. |
| [ZenDeviceEffects](https://developer.android.com/reference/android/service/notification/ZenDeviceEffects) | Represents the set of device effects (affecting display and device behavior in general) that are applied whenever an `https://developer.android.com/reference/android/app/AutomaticZenRule` is active. |
| [ZenDeviceEffects.Builder](https://developer.android.com/reference/android/service/notification/ZenDeviceEffects.Builder) | Builder class for `https://developer.android.com/reference/android/service/notification/ZenDeviceEffects` objects. |
| [ZenPolicy](https://developer.android.com/reference/android/service/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](https://developer.android.com/reference/android/service/notification/ZenPolicy.Builder) | Builder class for `https://developer.android.com/reference/android/service/notification/ZenPolicy` objects. |

-

  ## Classes

  - [Condition](https://developer.android.com/reference/android/service/notification/Condition)
  - [ConditionProviderService](https://developer.android.com/reference/android/service/notification/ConditionProviderService)
  - [NotificationListenerService](https://developer.android.com/reference/android/service/notification/NotificationListenerService)
  - [NotificationListenerService.Ranking](https://developer.android.com/reference/android/service/notification/NotificationListenerService.Ranking)
  - [NotificationListenerService.RankingMap](https://developer.android.com/reference/android/service/notification/NotificationListenerService.RankingMap)
  - [StatusBarNotification](https://developer.android.com/reference/android/service/notification/StatusBarNotification)
  - [ZenDeviceEffects](https://developer.android.com/reference/android/service/notification/ZenDeviceEffects)
  - [ZenDeviceEffects.Builder](https://developer.android.com/reference/android/service/notification/ZenDeviceEffects.Builder)
  - [ZenPolicy](https://developer.android.com/reference/android/service/notification/ZenPolicy)
  - [ZenPolicy.Builder](https://developer.android.com/reference/android/service/notification/ZenPolicy.Builder)