Handle to a shown notification. Use NotificationHandle::close to
dismiss it programmatically. Dropping the handle does NOT close the
notification — they’re fire-and-forget on the OS side.
Creation-time window style options. Properties that must be decided when
the OS window is constructed (frameless chrome, non-activating panel
behavior). Post-creation properties (size, position, resizable,
always-on-top) are set through their respective Window setters.
Result of request_permission / query_permission. Mirrors the
Web Permissions API state set with an extra Unsupported variant for
environments where the capability cannot be authorized at all (e.g.
an unbundled macOS process, or a backend that has no concept of the
kind on this platform).
Version of this laufey crate. Used by downstream consumers (e.g. the Deno CLI)
to locate matching prebuilt backend binaries in GitHub releases
(github.com/denoland/laufey/releases/tag/v{VERSION}).
Show an alert dialog (app-wide, no parent window). Blocks until
dismissed; the platform’s modal run loop pumps OS events while the
dialog is up so other LAUFEY windows continue to render and respond.
Register a callback invoked when the user clicks the dock icon while the
app has no visible windows (macOS only). The callback receives whether
any windows are currently visible.
Request authorization for kind. If the current status is
PermissionStatus::Prompt the OS displays a system prompt;
otherwise the cached decision is returned without re-prompting (the
OS does not show a second prompt once the user has decided). The
callback runs on the UI thread.
Set a short text badge on the app’s dock icon (macOS) or taskbar icon
(Windows), or prefix the focused window’s title with "(text) " (Linux).
Pass None or an empty string to clear the badge.