# NotificationManager.Policy

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

# Policy

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/app/NotificationManager.Policy "View this page in Java")  

```
open class Policy : Parcelable
```

|---|----------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                   ||
| ↳ | [android.app.NotificationManager.Policy](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#) |

Notification policy configuration. Represents user-preferences for notification filtering.

## Summary

|                                                                                                                                                                                                                             Constants                                                                                                                                                                                                                              ||
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CONVERSATION_SENDERS_ANYONE](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_ANYONE:kotlin.Int) Used to indicate all conversations can bypass dnd.                                                                                                                                                                   |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CONVERSATION_SENDERS_IMPORTANT](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_IMPORTANT:kotlin.Int) Used to indicate important conversations can bypass dnd.                                                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CONVERSATION_SENDERS_NONE](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_NONE:kotlin.Int) Used to indicate no conversations can bypass dnd.                                                                                                                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_CATEGORY_ALARMS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_ALARMS:kotlin.Int) Alarms are prioritized                                                                                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_CATEGORY_CALLS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_CALLS:kotlin.Int) Calls are prioritized.                                                                                                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_CATEGORY_CONVERSATIONS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_CONVERSATIONS:kotlin.Int) Conversations are allowed through DND.                                                                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_CATEGORY_EVENTS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_EVENTS:kotlin.Int) Event notifications are prioritized.                                                                                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_CATEGORY_MEDIA](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_MEDIA:kotlin.Int) Media, game, voice navigation are prioritized                                                                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_CATEGORY_MESSAGES](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_MESSAGES:kotlin.Int) Message notifications are prioritized.                                                                                                                                                                                 |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_CATEGORY_REMINDERS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_REMINDERS:kotlin.Int) Reminder notifications are prioritized.                                                                                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_CATEGORY_REPEAT_CALLERS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_REPEAT_CALLERS:kotlin.Int) Calls from repeat callers are prioritized.                                                                                                                                                                 |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_CATEGORY_SYSTEM](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_SYSTEM:kotlin.Int) System (catch-all for non-never suppressible sounds) are prioritized                                                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_SENDERS_ANY](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_ANY:kotlin.Int) Any sender is prioritized.                                                                                                                                                                                                         |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_SENDERS_CONTACTS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_CONTACTS:kotlin.Int) Saved contacts are prioritized.                                                                                                                                                                                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PRIORITY_SENDERS_STARRED](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_STARRED:kotlin.Int) Only starred contacts are prioritized.                                                                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SUPPRESSED_EFFECT_AMBIENT](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_AMBIENT:kotlin.Int) Whether notification intercepted by DND are prevented from appearing on ambient displays on devices that support ambient display.                                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SUPPRESSED_EFFECT_BADGE](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_BADGE:kotlin.Int) Whether[badges](https://developer.android.com/reference/kotlin/android/app/NotificationChannel#canShowBadge())from notifications intercepted by DND are blocked on devices that support badging.                             |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SUPPRESSED_EFFECT_FULL_SCREEN_INTENT](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_FULL_SCREEN_INTENT:kotlin.Int) Whether[full screen intents](https://developer.android.com/reference/kotlin/android/app/Notification#fullScreenIntent:android.app.PendingIntent)from notifications intercepted by DND are blocked. |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SUPPRESSED_EFFECT_LIGHTS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_LIGHTS:kotlin.Int) Whether[notification lights](https://developer.android.com/reference/kotlin/android/app/NotificationChannel#shouldShowLights())from notifications intercepted by DND are blocked.                                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SUPPRESSED_EFFECT_NOTIFICATION_LIST](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_NOTIFICATION_LIST:kotlin.Int) Whether notification intercepted by DND are prevented from appearing in notification list views like the notification shade or lockscreen on devices that support those views.                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SUPPRESSED_EFFECT_PEEK](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_PEEK:kotlin.Int) Whether notifications intercepted by DND are prevented from peeking.                                                                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SUPPRESSED_EFFECT_SCREEN_OFF](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_OFF:kotlin.Int) Whether notifications suppressed by DND should not interrupt visually (e.g. with notification lights or by turning the screen on) when the screen is off.                                                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SUPPRESSED_EFFECT_SCREEN_ON](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_ON:kotlin.Int) Whether notifications suppressed by DND should not interrupt visually when the screen is on (e.g. by peeking onto the screen).                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SUPPRESSED_EFFECT_STATUS_BAR](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_STATUS_BAR:kotlin.Int) Whether notifications intercepted by DND are prevented from appearing in the status bar, on devices that support status bars.                                                                                      |

| Inherited constants ||
|---|---|
| From class[Parcelable](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#) |----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int) <br /> Descriptor bit used with[describeContents()](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#describeContents()): indicates that the Parcelable object's flattened representation includes a file descriptor. <br />                                                                                                                                                                                                        | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int) <br /> Flag for use with[writeToParcel](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)): the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". Some implementations may want to release resources at this point. <br /> | ||

|                                                                                                                                                                                                                                                                                                                                                                                  Public constructors                                                                                                                                                                                                                                                                                                                                                                                  ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Policy](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#Policy(kotlin.Int,%20kotlin.Int,%20kotlin.Int))`(`priorityCategories:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `priorityCallSenders:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `priorityMessageSenders:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Constructs a policy for Do Not Disturb priority mode behavior.                                                                                                                                                                                                                                                   |
| [Policy](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#Policy(kotlin.Int,%20kotlin.Int,%20kotlin.Int,%20kotlin.Int))`(`priorityCategories:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `priorityCallSenders:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `priorityMessageSenders:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `suppressedVisualEffects:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Constructs a policy for Do Not Disturb priority mode behavior.                                                                                                                            |
| [Policy](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#Policy(kotlin.Int,%20kotlin.Int,%20kotlin.Int,%20kotlin.Int,%20kotlin.Int))`(`priorityCategories:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `priorityCallSenders:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `priorityMessageSenders:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `suppressedVisualEffects:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `priorityConversationSenders:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Constructs a policy for Do Not Disturb priority mode behavior. |

|                                                                                                                                                                                                                 Public methods                                                                                                                                                                                                                 ||
|---------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)              | [describeContents](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#describeContents())`()` <br />                                                                                                                                                                                                           |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)      | [equals](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` Indicates whether some other object is "equal to" this one.                                                                          |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)              | [hashCode](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#hashCode())`()` <br />                                                                                                                                                                                                                           |
| openstatic[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [priorityCategoriesToString](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#priorityCategoriesToString(kotlin.Int))`(`priorityCategories:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                           |
| openstatic[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [prioritySendersToString](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#prioritySendersToString(kotlin.Int))`(`prioritySenders:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                                    |
| openstatic[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [suppressedEffectsToString](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#suppressedEffectsToString(kotlin.Int))`(`effects:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                                        |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)        | [toString](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#toString())`()` <br />                                                                                                                                                                                                                           |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)            | [writeToParcel](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#)`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> |

|                                                                                                                                                                                                                                     Properties                                                                                                                                                                                                                                      ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Parcelable.Creator](https://developer.android.com/reference/kotlin/android/os/Parcelable.Creator.html#)\<[NotificationManager.Policy](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#)!\> | [CREATOR](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CREATOR:android.os.Parcelable.Creator) <br />                                                                                              |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                              | [priorityCallSenders](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#priorityCallSenders:kotlin.Int) Notification senders to prioritize for calls.                                                  |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                              | [priorityCategories](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#priorityCategories:kotlin.Int) Notification categories to prioritize.                                                           |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                              | [priorityConversationSenders](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#priorityConversationSenders:kotlin.Int) Notification senders to prioritize for conversations.                          |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                              | [priorityMessageSenders](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#priorityMessageSenders:kotlin.Int) Notification senders to prioritize for messages.                                         |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                              | [suppressedVisualEffects](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#suppressedVisualEffects:kotlin.Int) Visual effects to suppress for a notification that is filtered by Do Not Disturb mode. |

## Constants

### CONVERSATION_SENDERS_ANYONE

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

```
static val CONVERSATION_SENDERS_ANYONE: Int
```

Used to indicate all conversations can bypass dnd.  

    Value: 1

### CONVERSATION_SENDERS_IMPORTANT

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

```
static val CONVERSATION_SENDERS_IMPORTANT: Int
```

Used to indicate important conversations can bypass dnd.  

    Value: 2

### CONVERSATION_SENDERS_NONE

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

```
static val CONVERSATION_SENDERS_NONE: Int
```

Used to indicate no conversations can bypass dnd.  

    Value: 3

### PRIORITY_CATEGORY_ALARMS

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

```
static val PRIORITY_CATEGORY_ALARMS: Int
```

Alarms are prioritized  

    Value: 32

### PRIORITY_CATEGORY_CALLS

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

```
static val PRIORITY_CATEGORY_CALLS: Int
```

Calls are prioritized.  

    Value: 8

### PRIORITY_CATEGORY_CONVERSATIONS

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

```
static val PRIORITY_CATEGORY_CONVERSATIONS: Int
```

Conversations are allowed through DND.  

    Value: 256

### PRIORITY_CATEGORY_EVENTS

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

```
static val PRIORITY_CATEGORY_EVENTS: Int
```

Event notifications are prioritized.  

    Value: 2

### PRIORITY_CATEGORY_MEDIA

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

```
static val PRIORITY_CATEGORY_MEDIA: Int
```

Media, game, voice navigation are prioritized  

    Value: 64

### PRIORITY_CATEGORY_MESSAGES

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

```
static val PRIORITY_CATEGORY_MESSAGES: Int
```

Message notifications are prioritized.  

    Value: 4

### PRIORITY_CATEGORY_REMINDERS

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

```
static val PRIORITY_CATEGORY_REMINDERS: Int
```

Reminder notifications are prioritized.  

    Value: 1

### PRIORITY_CATEGORY_REPEAT_CALLERS

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

```
static val PRIORITY_CATEGORY_REPEAT_CALLERS: Int
```

Calls from repeat callers are prioritized.  

    Value: 16

### PRIORITY_CATEGORY_SYSTEM

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

```
static val PRIORITY_CATEGORY_SYSTEM: Int
```

System (catch-all for non-never suppressible sounds) are prioritized  

    Value: 128

### PRIORITY_SENDERS_ANY

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

```
static val PRIORITY_SENDERS_ANY: Int
```

Any sender is prioritized.  

    Value: 0

### PRIORITY_SENDERS_CONTACTS

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

```
static val PRIORITY_SENDERS_CONTACTS: Int
```

Saved contacts are prioritized.  

    Value: 1

### PRIORITY_SENDERS_STARRED

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

```
static val PRIORITY_SENDERS_STARRED: Int
```

Only starred contacts are prioritized.  

    Value: 2

### SUPPRESSED_EFFECT_AMBIENT

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

```
static val SUPPRESSED_EFFECT_AMBIENT: Int
```

Whether notification intercepted by DND are prevented from appearing on ambient displays on devices that support ambient display.  

    Value: 128

### SUPPRESSED_EFFECT_BADGE

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

```
static val SUPPRESSED_EFFECT_BADGE: Int
```

Whether[badges](https://developer.android.com/reference/kotlin/android/app/NotificationChannel#canShowBadge())from notifications intercepted by DND are blocked on devices that support badging.  

    Value: 64

### SUPPRESSED_EFFECT_FULL_SCREEN_INTENT

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

```
static val SUPPRESSED_EFFECT_FULL_SCREEN_INTENT: Int
```

Whether[full screen intents](https://developer.android.com/reference/kotlin/android/app/Notification#fullScreenIntent:android.app.PendingIntent)from notifications intercepted by DND are blocked.  

    Value: 4

### SUPPRESSED_EFFECT_LIGHTS

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

```
static val SUPPRESSED_EFFECT_LIGHTS: Int
```

Whether[notification lights](https://developer.android.com/reference/kotlin/android/app/NotificationChannel#shouldShowLights())from notifications intercepted by DND are blocked.  

    Value: 8

### SUPPRESSED_EFFECT_NOTIFICATION_LIST

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

```
static val SUPPRESSED_EFFECT_NOTIFICATION_LIST: Int
```

Whether notification intercepted by DND are prevented from appearing in notification list views like the notification shade or lockscreen on devices that support those views.  

    Value: 256

### SUPPRESSED_EFFECT_PEEK

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

```
static val SUPPRESSED_EFFECT_PEEK: Int
```

Whether notifications intercepted by DND are prevented from peeking.  

    Value: 16

### SUPPRESSED_EFFECT_SCREEN_OFF

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

```
static val SUPPRESSED_EFFECT_SCREEN_OFF: Int
```

**Deprecated:** *use[SUPPRESSED_EFFECT_FULL_SCREEN_INTENT](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_FULL_SCREEN_INTENT:kotlin.Int)and[SUPPRESSED_EFFECT_AMBIENT](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_AMBIENT:kotlin.Int)and[SUPPRESSED_EFFECT_LIGHTS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_LIGHTS:kotlin.Int)individually.*

Whether notifications suppressed by DND should not interrupt visually (e.g. with notification lights or by turning the screen on) when the screen is off.  

    Value: 1

### SUPPRESSED_EFFECT_SCREEN_ON

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

```
static val SUPPRESSED_EFFECT_SCREEN_ON: Int
```

**Deprecated:** *use[SUPPRESSED_EFFECT_PEEK](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_PEEK:kotlin.Int).*

Whether notifications suppressed by DND should not interrupt visually when the screen is on (e.g. by peeking onto the screen).  

    Value: 2

### SUPPRESSED_EFFECT_STATUS_BAR

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

```
static val SUPPRESSED_EFFECT_STATUS_BAR: Int
```

Whether notifications intercepted by DND are prevented from appearing in the status bar, on devices that support status bars.  

    Value: 32

## Public constructors

### Policy

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

```
Policy(
    priorityCategories: Int, 
    priorityCallSenders: Int, 
    priorityMessageSenders: Int)
```

Constructs a policy for Do Not Disturb priority mode behavior.

Apps that target API levels below[Build.VERSION_CODES.P](https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#P:kotlin.Int)cannot change user-designated values to allow or disallow[Policy.PRIORITY_CATEGORY_ALARMS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_ALARMS:kotlin.Int),[Policy.PRIORITY_CATEGORY_SYSTEM](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_SYSTEM:kotlin.Int), and[Policy.PRIORITY_CATEGORY_MEDIA](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_MEDIA:kotlin.Int)from bypassing dnd.

|                                                                            Parameters                                                                            ||
|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| `priorityCategories`     | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):bitmask of categories of notifications that can bypass DND. |
| `priorityCallSenders`    | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):which callers can bypass DND.                               |
| `priorityMessageSenders` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):which message senders can bypass DND.                       |

### Policy

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

```
Policy(
    priorityCategories: Int, 
    priorityCallSenders: Int, 
    priorityMessageSenders: Int, 
    suppressedVisualEffects: Int)
```

Constructs a policy for Do Not Disturb priority mode behavior.

Apps that target API levels below[Build.VERSION_CODES.R](https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#R:kotlin.Int)cannot change user-designated values to allow or disallow[Policy.PRIORITY_CATEGORY_CONVERSATIONS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_CONVERSATIONS:kotlin.Int), from bypassing dnd.

Additionally, apps that target API levels below[Build.VERSION_CODES.P](https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#P:kotlin.Int)can only modify the[SUPPRESSED_EFFECT_SCREEN_ON](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_ON:kotlin.Int)and[SUPPRESSED_EFFECT_SCREEN_OFF](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_OFF:kotlin.Int)bits of the suppressed visual effects field. All other suppressed effects will be ignored and reconstituted from the screen on and screen off values.

Apps that target[Build.VERSION_CODES.P](https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#P:kotlin.Int)or above can set any suppressed visual effects. However, if any suppressed effects \>[SUPPRESSED_EFFECT_SCREEN_ON](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_ON:kotlin.Int)are set,[SUPPRESSED_EFFECT_SCREEN_ON](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_ON:kotlin.Int)and[SUPPRESSED_EFFECT_SCREEN_OFF](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_OFF:kotlin.Int)will be ignored and reconstituted from the more specific suppressed visual effect bits. Apps should migrate to targeting specific effects instead of the deprecated[SUPPRESSED_EFFECT_SCREEN_ON](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_ON:kotlin.Int)and[SUPPRESSED_EFFECT_SCREEN_OFF](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_OFF:kotlin.Int)effects.

|                                                                                             Parameters                                                                                             ||
|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `priorityCategories`      | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):bitmask of categories of notifications that can bypass DND.                                  |
| `priorityCallSenders`     | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):which callers can bypass DND.                                                                |
| `priorityMessageSenders`  | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):which message senders can bypass DND.                                                        |
| `suppressedVisualEffects` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):which visual interruptions should be suppressed from notifications that are filtered by DND. |

### Policy

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

```
Policy(
    priorityCategories: Int, 
    priorityCallSenders: Int, 
    priorityMessageSenders: Int, 
    suppressedVisualEffects: Int, 
    priorityConversationSenders: Int)
```

Constructs a policy for Do Not Disturb priority mode behavior.

Apps that target API levels below[Build.VERSION_CODES.P](https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#P:kotlin.Int)cannot change user-designated values to allow or disallow[Policy.PRIORITY_CATEGORY_CONVERSATIONS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_CONVERSATIONS:kotlin.Int)from bypassing dnd. If you do need to change them, use a[ZenPolicy](https://developer.android.com/reference/kotlin/android/service/notification/ZenPolicy.html#)associated with an[AutomaticZenRule](https://developer.android.com/reference/kotlin/android/app/AutomaticZenRule)instead of changing the global setting.

Apps that target API levels below[Build.VERSION_CODES.P](https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#P:kotlin.Int)cannot change user-designated values to allow or disallow[Policy.PRIORITY_CATEGORY_ALARMS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_ALARMS:kotlin.Int),[Policy.PRIORITY_CATEGORY_SYSTEM](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_SYSTEM:kotlin.Int), and[Policy.PRIORITY_CATEGORY_MEDIA](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_CATEGORY_MEDIA:kotlin.Int)from bypassing dnd.

Additionally, apps that target API levels below[Build.VERSION_CODES.P](https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#P:kotlin.Int)can only modify the[SUPPRESSED_EFFECT_SCREEN_ON](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_ON:kotlin.Int)and[SUPPRESSED_EFFECT_SCREEN_OFF](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_OFF:kotlin.Int)bits of the suppressed visual effects field. All other suppressed effects will be ignored and reconstituted from the screen on and screen off values.

Apps that target[Build.VERSION_CODES.P](https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES.html#P:kotlin.Int)or above can set any suppressed visual effects. However, if any suppressed effects \>[SUPPRESSED_EFFECT_SCREEN_ON](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_ON:kotlin.Int)are set,[SUPPRESSED_EFFECT_SCREEN_ON](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_ON:kotlin.Int)and[SUPPRESSED_EFFECT_SCREEN_OFF](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_OFF:kotlin.Int)will be ignored and reconstituted from the more specific suppressed visual effect bits. Apps should migrate to targeting specific effects instead of the deprecated[SUPPRESSED_EFFECT_SCREEN_ON](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_ON:kotlin.Int)and[SUPPRESSED_EFFECT_SCREEN_OFF](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#SUPPRESSED_EFFECT_SCREEN_OFF:kotlin.Int)effects.

|                                                                                                                                                                                                                                                                                                                                                                 Parameters                                                                                                                                                                                                                                                                                                                                                                  ||
|-------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `priorityCategories`          | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):bitmask of categories of notifications that can bypass DND.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `priorityCallSenders`         | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):which callers can bypass DND. Value is[android.app.NotificationManager.Policy#PRIORITY_SENDERS_ANY](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_ANY:kotlin.Int),[android.app.NotificationManager.Policy#PRIORITY_SENDERS_CONTACTS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_CONTACTS:kotlin.Int), or[android.app.NotificationManager.Policy#PRIORITY_SENDERS_STARRED](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_STARRED:kotlin.Int)         |
| `priorityMessageSenders`      | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):which message senders can bypass DND. Value is[android.app.NotificationManager.Policy#PRIORITY_SENDERS_ANY](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_ANY:kotlin.Int),[android.app.NotificationManager.Policy#PRIORITY_SENDERS_CONTACTS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_CONTACTS:kotlin.Int), or[android.app.NotificationManager.Policy#PRIORITY_SENDERS_STARRED](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_STARRED:kotlin.Int) |
| `suppressedVisualEffects`     | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):which visual interruptions should be suppressed from notifications that are filtered by DND.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `priorityConversationSenders` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Value is[android.app.NotificationManager.Policy#CONVERSATION_SENDERS_ANYONE](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_ANYONE:kotlin.Int),[android.app.NotificationManager.Policy#CONVERSATION_SENDERS_IMPORTANT](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_IMPORTANT:kotlin.Int), or[android.app.NotificationManager.Policy#CONVERSATION_SENDERS_NONE](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_NONE:kotlin.Int)             |

## Public methods

### describeContents

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

```
open fun describeContents(): Int
```

|                                                                                                                                                                               Return                                                                                                                                                                               ||
|----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either`0`or[android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int) |

### equals

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

```
open fun equals(other: Any?): Boolean
```

Indicates whether some other object is "equal to" this one.

The`equals`method implements an equivalence relation on non-null object references:

- It is*reflexive* : for any non-null reference value`x`,`x.equals(x)`should return`true`.
- It is*symmetric* : for any non-null reference values`x`and`y`,`x.equals(y)`should return`true`if and only if`y.equals(x)`returns`true`.
- It is*transitive* : for any non-null reference values`x`,`y`, and`z`, if`x.equals(y)`returns`true`and`y.equals(z)`returns`true`, then`x.equals(z)`should return`true`.
- It is*consistent* : for any non-null reference values`x`and`y`, multiple invocations of`x.equals(y)`consistently return`true`or consistently return`false`, provided no information used in`equals`comparisons on the objects is modified.
- For any non-null reference value`x`,`x.equals(null)`should return`false`.

An equivalence relation partitions the elements it operates on into*equivalence classes*; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

|                     Parameters                     ||
|-------|---------------------------------------------|
| `obj` | the reference object with which to compare. |
| `o`   | This value may be`null`.                    |

|                                                                           Return                                                                           ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true`if this object is the same as the obj argument;`false`otherwise. |

### hashCode

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

```
open fun hashCode(): Int
```

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |

### priorityCategoriesToString

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

```
open static fun priorityCategoriesToString(priorityCategories: Int): String!
```  

### prioritySendersToString

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

```
open static fun prioritySendersToString(prioritySenders: Int): String!
```  

### suppressedEffectsToString

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

```
open static fun suppressedEffectsToString(effects: Int): String!
```  

### toString

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

```
open fun toString(): String
```

|                                                          Return                                                          ||
|----------------------------------------------------------------------------------|----------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |

### writeToParcel

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

```
open fun writeToParcel(
    dest: Parcel, 
    flags: Int
): Unit
```

|                                                                                                                                                                                                                                                                                     Parameters                                                                                                                                                                                                                                                                                     ||
|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `dest`  | [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#):The Parcel in which the object should be written. This value cannot be`null`.                                                                                                                                                                                                                                                                                                                                                                                                            |
| `flags` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Additional flags about how the object should be written. May be 0 or[PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int). Value is either`0`or a combination of[android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int), and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |

## Properties

### CREATOR

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

```
static val CREATOR: Parcelable.Creator<NotificationManager.Policy!>
```  

### priorityCallSenders

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

```
val priorityCallSenders: Int
```

Notification senders to prioritize for calls. One of: PRIORITY_SENDERS_ANY, PRIORITY_SENDERS_CONTACTS, PRIORITY_SENDERS_STARRED  
Value is[android.app.NotificationManager.Policy#PRIORITY_SENDERS_ANY](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_ANY:kotlin.Int),[android.app.NotificationManager.Policy#PRIORITY_SENDERS_CONTACTS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_CONTACTS:kotlin.Int), or[android.app.NotificationManager.Policy#PRIORITY_SENDERS_STARRED](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_STARRED:kotlin.Int)  

### priorityCategories

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

```
val priorityCategories: Int
```

Notification categories to prioritize. Bitmask of PRIORITY_CATEGORY_\* constants.  

### priorityConversationSenders

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

```
val priorityConversationSenders: Int
```

Notification senders to prioritize for conversations. One of:[CONVERSATION_SENDERS_NONE](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_NONE:kotlin.Int),[CONVERSATION_SENDERS_IMPORTANT](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_IMPORTANT:kotlin.Int),[CONVERSATION_SENDERS_ANYONE](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_ANYONE:kotlin.Int).  
Value is[android.app.NotificationManager.Policy#CONVERSATION_SENDERS_ANYONE](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_ANYONE:kotlin.Int),[android.app.NotificationManager.Policy#CONVERSATION_SENDERS_IMPORTANT](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_IMPORTANT:kotlin.Int), or[android.app.NotificationManager.Policy#CONVERSATION_SENDERS_NONE](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#CONVERSATION_SENDERS_NONE:kotlin.Int)  

### priorityMessageSenders

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

```
val priorityMessageSenders: Int
```

Notification senders to prioritize for messages. One of: PRIORITY_SENDERS_ANY, PRIORITY_SENDERS_CONTACTS, PRIORITY_SENDERS_STARRED  
Value is[android.app.NotificationManager.Policy#PRIORITY_SENDERS_ANY](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_ANY:kotlin.Int),[android.app.NotificationManager.Policy#PRIORITY_SENDERS_CONTACTS](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_CONTACTS:kotlin.Int), or[android.app.NotificationManager.Policy#PRIORITY_SENDERS_STARRED](https://developer.android.com/reference/kotlin/android/app/NotificationManager.Policy#PRIORITY_SENDERS_STARRED:kotlin.Int)  

### suppressedVisualEffects

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

```
val suppressedVisualEffects: Int
```

Visual effects to suppress for a notification that is filtered by Do Not Disturb mode. Bitmask of SUPPRESSED_EFFECT_\* constants.