isBeingDismissed

val isBeingDismissed: LiveData<Boolean>

true when the panel is being dismissed from the system UI, either through user interaction or other events. At this point the panel may still be visible due to the panel's exit animation.