BottomNavItem

class BottomNavItem(var id: String? = null, var name: String? = null, var key: String? = null, var iconUrl: String? = null, var action: String? = null)

BottomNavItem — represents an item in the bottom navigation bar.

Retrieved via com.advantahealth.api.ui.UserInterface.getBottomNavigationItems. Defines label, key, icon, and action for each navigation destination.

Properties

  • id Unique identifier.

  • name Display name (label).

  • key Unique key used for routing/analytics.

  • iconUrl URL for the icon (nullable).

  • action Action string, e.g., a deep link or internal app route.

Android (Kotlin) — building bottom nav

val items = AFCore.userInterface().getBottomNavigationItems()
bottomNav.setup(items)

iOS (Swift) — setting up bottom nav

let items = try await AFCore.shared.userInterface().getBottomNavigationItems()
self.bottomNav.render(items)

Constructors

Link copied to clipboard
constructor(id: String? = null, name: String? = null, key: String? = null, iconUrl: String? = null, action: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var id: String?
Link copied to clipboard
var key: String?
Link copied to clipboard
var name: String?

Functions

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