Skip to main content

DeviceLifecycle

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid

Provides events related to the device lifecycle.

public class DeviceLifecycle

See: https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/app-lifecycle Access this class through the Info singleton.

Constructors​

Instance memberDeviceLifecycle()​

Creates a new instance of DeviceLifecycle.

Events​

Instance memberActivated​

EventHandler Raised when the window has been activated, and is, or will become, the focused window.

Instance memberBackgrounding​

EventHandler Raised when the hybrid app is entering the background.

Instance memberDeactivated​

EventHandler Raised when the window is no longer the focused window. However, the window might still be visible.

Instance memberDestroying​

EventHandler Raised when the native window is being destroyed and deallocated. The same cross-platform window might be used against a new native window when the app is reopened.

Instance memberResumed​

EventHandler Raised when an app resumes after being stopped. This event won't be raised the first time your app launches, and can only be raised if the Stopped event has previously been raised.

Instance memberStopped​

EventHandler Raised when the window is no longer visible. There's no guarantee that an app will resume from this state, because it may be terminated by the operating system.