BottomNavItem

class BottomNavItem(var id: String? = null, var name: String? = null, var key: String? = null, var iconUrl: String? = null, var action: String? = null, var webUrl: 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.

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, webUrl: String? = null)
constructor(id: String?, name: String?, key: String?, iconUrl: String?, action: String?)

The 1.11 constructor. Kotlin default arguments do not reach Swift, so without it a Swift caller written against 1.11 (a preview, a test fake) would stop compiling.

Properties

Link copied to clipboard

Action string the host resolves on tap: ATYPE_APPAGE for an in-app route (see key) or ATYPE_WEBURL for a web page (see webUrl), or null.

Link copied to clipboard

Absolute URL of the item's icon, or null when none is set.

Link copied to clipboard
var id: String?

Unique identifier of the navigation item, or null when omitted.

Link copied to clipboard
var key: String?

Stable key used for routing and analytics, or null.

Link copied to clipboard
var name: String?

Display label shown under/next to the icon, or null.

Link copied to clipboard

Page to open when action is ATYPE_WEBURL, or null.

Functions

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