LavaUI docs GitHub

struct NotificationInfo

Swift

struct NotificationInfo

One live desktop notification, as the server holds it.

Sources/LavaUI/Editor.swift:1033

Properties

var actionCount: Int

How many actions the notification offers. Read them with Editor.notificationActionKey(_:action:) and notificationActionLabel(_:action:).

Sources/LavaUI/Editor.swift:1055

var appName: String

The sending application's name.

Sources/LavaUI/Editor.swift:1037

var body: String

Not documented.

Sources/LavaUI/Editor.swift:1040

var iconHeight: Int

Height of iconRgba, in pixels.

Sources/LavaUI/Editor.swift:1046

var iconPath: String

Resolved file for app_icon or the image-path hint.

Sources/LavaUI/Editor.swift:1042

var iconRgba: [UInt8]

RGBA8 pixels from the image-data hint; empty when there are none.

Sources/LavaUI/Editor.swift:1048

var iconWidth: Int

Pixels from the image-data hint, RGBA8, when the sender sent its own.

Sources/LavaUI/Editor.swift:1044

var id: UInt32

The protocol's id, which is what actions and closing speak in.

Sources/LavaUI/Editor.swift:1035

var remainingMs: Int64

Milliseconds left, or 0 when it waits for the user instead.

Sources/LavaUI/Editor.swift:1052

var summary: String

The notification's title line.

Sources/LavaUI/Editor.swift:1039

var urgency: UInt8

0 low, 1 normal, 2 critical.

Sources/LavaUI/Editor.swift:1050