asFlow

open fun asFlow(): Flow<WindowVisibilityEvent>

Provides a Flow to receive events of window visibility.