MenuItem

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)

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.

Properties

  • id Unique identifier.

  • name Display name.

  • key Unique key for analytics/routing.

  • iconUrl Icon URL (nullable).

  • action Optional action string (e.g., deep link, feature key).

  • webUrl Optional web link to open on selection.

Android (Kotlin)

val menuItems = AFCore.userInterface().getMenuItems()
drawerMenu.update(menuItems)

iOS (Swift)

let menuItems = try await AFCore.shared.userInterface().getMenuItems()
self.drawerMenu.render(menuItems)

Constructors

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

Functions

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