IosWindowVisibility

class IosWindowVisibility(notificationCenter: NSNotificationCenter = NSNotificationCenter.defaultCenter) : WindowVisibilityProvider(source)

Implementation of WindowVisibility for iOS.

In the iOS system, UIApplicationDidBecomeActiveNotification and UIApplicationWillResignActiveNotification are used to monitor window visibility states. It notifies the window visibility state based on the notification received.

Constructors

Link copied to clipboard
constructor(notificationCenter: NSNotificationCenter = NSNotificationCenter.defaultCenter)

Functions

Link copied to clipboard
open override fun addListener(listener: Listener<WindowVisibilityEvent>)
Link copied to clipboard
fun <E> Listenable<E>.asFlow(): Flow<E>

Converts this Listenable into a Flow that emits events.

Link copied to clipboard
Link copied to clipboard
open override fun notify(event: WindowVisibilityEvent)
Link copied to clipboard
open override fun removeListener(listener: Listener<WindowVisibilityEvent>)