TrayNotification

class TrayNotification(var id: Long = 0, var subject: String? = null, var body: String? = null, var sticky: Boolean? = false, var urgent: Boolean? = false, var hyperlink: String? = null, var iconUrl: String? = null, var notificationType: Int? = null, var target: Int? = null, var createDateTime: String? = null)

TrayNotification — represents a notification displayed in the tray/notification center.

Retrieved via com.advantahealth.api.ui.UserInterface.getTrayNotifications.

Properties

  • id Unique identifier.

  • subject Title or subject line.

  • body Body text or message content.

  • sticky Whether the notification should remain until dismissed.

  • urgent Whether the notification is high priority.

  • hyperlink Optional link target.

  • iconUrl Optional icon URL.

  • notificationType Integer type identifier.

  • target Optional entity ID associated with this notification.

  • createDateTime Creation timestamp (string).

Android (Kotlin) — fetching tray notifications

lifecycleScope.launch {
val notifications = AFCore.userInterface().getTrayNotifications()
tray.render(notifications)
}

iOS (Swift)

Task {
let notifications = try await AFCore.shared.userInterface().getTrayNotifications()
self.tray.render(notifications)
}

Constructors

Link copied to clipboard
constructor(id: Long = 0, subject: String? = null, body: String? = null, sticky: Boolean? = false, urgent: Boolean? = false, hyperlink: String? = null, iconUrl: String? = null, notificationType: Int? = null, target: Int? = null, createDateTime: String? = null)

Properties

Link copied to clipboard
var body: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var id: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var target: Int?
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String