Menu Item
class MenuItem(var id: String? = null, var name: String? = null, var key: String? = null, var iconUrl: String? = null, var action: String? = null, var webUrl: String? = null, var sectionId: String? = null, var sectionTitle: String? = null, var sectionType: String? = null, var accessibilityLabel: String? = null)
MenuItem — represents a menu entry in the application.
Returned by com.advantahealth.api.ui.UserInterface.getMenuItems and typically displayed in sidebars, settings menus, or quick actions.
For Wellness-tab tile gating, items are matched against the local catalog by lowercased substring on key/name/action.
Android (Kotlin)
val menuItems = AFCore.userInterface().getMenuItems()
drawerMenu.update(menuItems)Content copied to clipboard
iOS (Swift)
let menuItems = try await AFCore.shared.userInterface().getMenuItems()
self.drawerMenu.render(menuItems)Content copied to clipboard
Constructors
Link copied to clipboard
constructor(id: String? = null, name: String? = null, key: String? = null, iconUrl: String? = null, action: String? = null, webUrl: String? = null, sectionId: String? = null, sectionTitle: String? = null, sectionType: String? = null, accessibilityLabel: String? = null)
constructor(id: String?, name: String?, key: String?, iconUrl: String?, action: String?, webUrl: 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.