# NotificationManagerCompat.NotificationWithIdAndTag

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/app/NotificationManagerCompat.java+class:androidx.core.app.NotificationManagerCompat.NotificationWithIdAndTag) Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

*** ** * ** ***


```
public class NotificationManagerCompat.NotificationWithIdAndTag
```

<br />

*** ** * ** ***

Helper class which encapsulates a Notification, its id, and optionally a tag, for use when batch-posting a number of notifications.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationManagerCompat.NotificationWithIdAndTag#NotificationWithIdAndTag(int,android.app.Notification)(int id, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification)` |
| `https://developer.android.com/reference/androidx/core/app/NotificationManagerCompat.NotificationWithIdAndTag#NotificationWithIdAndTag(java.lang.String,int,android.app.Notification)( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html tag, int id, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification )` |

## Public constructors

### NotificationWithIdAndTag

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
public NotificationWithIdAndTag(int id, @NonNull Notification notification)
```

### NotificationWithIdAndTag

Added in [1.11.0](https://developer.android.com/jetpack/androidx/releases/core#1.11.0)

```
public NotificationWithIdAndTag(
    @Nullable String tag,
    int id,
    @NonNull Notification notification
)
```