When a native application loads, it goes through a series of steps. For example, an application window is created. Then the application is activated. At some point, the application can be backgrounded. Then it can be resumed. Then, after some time, the application is closed, and its instance is removed from the memory of the device.

.NET MAUI allows us to catch all of these events and apply custom logic to them. To demonstrate this, we have the following project setup:

Get hands-on with 1200+ tech skills courses.