containsUndismissedPanel

fun <P : AnyDismissablePanel?> Collection<P>.containsUndismissedPanel(): LiveData<Boolean>

Returns whether a panel collection contains any panels that have not been dismissed yet.

This can be used to adjust the system UI's layout upon the start of a panel's dismissal, without having to wait for them to have been transitioned away completely.

Note: This returns a LiveData transformation, which does not have an up-to-date value unless observed.