Vixen
02b45cc4
csharp
public sealed class DesktopLifecycle

The process's lifecycle on a desktop, where most of it never happens.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

No desktop suspends a process, so Suspended is unreachable here and Suspension is absent. Background is reachable and is tracked from window focus, because it is worth knowing: an application with no focused window can drop its frame rate without anybody noticing, and on a laptop that is the difference between a warm palm rest and a cool one.

Fields and properties (3)

  • public ApplicationState State

    Where the application is now.

  • public MemoryPressure MemoryPressure

    Always Normal: no desktop reports memory pressure to a process.

  • public bool IsQuitRequested

    Whether a quit has been requested and not yet cancelled.

Methods (3)

  • public DesktopLifecycle(PlatformEventBuffer events)

    The process's lifecycle on a desktop, where most of it never happens.

  • public void RequestQuit()

    Asks the application to quit.

  • public void CancelQuit()

    Withdraws a quit request.

Used by (1)

  • DesktopPlatformVixen.Platform.Desktop