Tray Notification
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)
}Content copied to clipboard
iOS (Swift)
Task {
let notifications = try await AFCore.shared.userInterface().getTrayNotifications()
self.tray.render(notifications)
}Content copied to clipboard