getBottomNavigationItems

Retrieves the bottom navigation items.

Return

A list of BottomNavItem. May be empty if none are configured.

Throws

if retrieval fails.

Android (Kotlin)

lifecycleScope.launch {
try {
val navItems = AFCore.userInterface().getBottomNavigationItems()
bottomNavAdapter.submitList(navItems)
} catch (t: Throwable) {
showError("Failed to load navigation: ${t.message}")
}
}

iOS (Swift)

Task {
do {
let navItems = try await AFCore.shared.userInterface().getBottomNavigationItems()
self.updateBottomNav(navItems)
} catch {
self.showError("Failed to load navigation: \(error.localizedDescription)")
}
}