{% 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 functions

NotificationSubject
assertThat(notification: Notification)
PendingIntentSubject
PendingIntentSubject
Unit
BundleSubject
Unit
hasFlags(flags: Int)

Assert that the notification has the given flags set.

Factory<NotificationSubject, Notification>
StringSubject

Public functions

assertThat

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

fun notifications(): Factory<NotificationSubject, Notification>

tickerText

fun tickerText(): StringSubject