{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

NotificationSubject

class NotificationSubject


Subject for making assertions about android.app.Notifications.

Summary

Public constructors

Public functions

java-static NotificationSubject!
assertThat(notification: Notification!)
PendingIntentSubject!
PendingIntentSubject!
Unit
BundleSubject!
Unit
hasFlags(flags: Int)

Assert that the notification has the given flags set.

java-static Factory<NotificationSubject, Notification>!
StringSubject!

Public constructors

NotificationSubject

NotificationSubject()

Public functions

assertThat

java-static fun assertThat(notification: Notification!): NotificationSubject!

contentIntent

fun contentIntent(): PendingIntentSubject!

deleteIntent

fun deleteIntent(): PendingIntentSubject!

doesNotHaveFlags

fun doesNotHaveFlags(flags: Int): Unit

extras

fun extras(): BundleSubject!

hasFlags

fun hasFlags(flags: Int): Unit

Assert that the notification has the given flags set.

notifications

java-static fun notifications(): Factory<NotificationSubject, Notification>!

tickerText

fun tickerText(): StringSubject!