getTrayNotifications

abstract suspend fun getTrayNotifications(): List<TrayNotification>

Retrieves the tray notifications for the member.

Return

A list of TrayNotification. May be empty if none are available.

Throws

if retrieval fails.

Android (Kotlin)

lifecycleScope.launch {
try {
val notifications = AFCore.userInterface().getTrayNotifications()
trayAdapter.submitList(notifications)
} catch (t: Throwable) {
showError("Failed to load notifications: ${t.message}")
}
}

iOS (Swift)

Task {
do {
let notifications = try await AFCore.shared.userInterface().getTrayNotifications()
self.updateTray(notifications)
} catch {
self.showError("Failed to load notifications: \(error.localizedDescription)")
}
}