Lifetime

Application lifetime.

Header#include "nativeui/lifetime.h"
Namespacenamespace nu
Typeclass

This class does system GUI toolkit intializations, and provides APIs around native GUI toolkit's application lifetime APIs. You should not use this API when integrating Yue into existing GUI apps.

When using this class, you must create Lifetime before creating State.

Events

void on_ready() macOS

Emitted when received applicationDidFinishLaunching notification.

Preventable

No.

void on_activate() macOS

Emitted when received applicationShouldHandleReopen notification and there is no visible windows. This usually happens when the app is activated by Finder, or user clicks on the dock icon.

Preventable

No.