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.
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