Menu
Kotlin Multiplatform
Getting the menu by marker
Like most OneEntry entities, the marker
is specified when creating a menu. It can be used to retrieve the menu and the pages associated with it.
val menu = MenusService.menu("dev")
By default, all pages are displayed in a single list, but you can set a hierarchical structure using the hierarchical
parameter.
val menu = MenusService.menu(
marker = "dev",
hierarchical = true,
langCode = "en_US"
)
Swift
Getting the menu by marker
Like most OneEntry entities, the marker
is specified when creating a menu. It can be used to retrieve the menu and the pages associated with it.
By default, all pages are displayed in a single list, but you can set a hierarchical structure using the hierarchical
parameter.
let menu = try await MenusService.shared.menu(
marker: "dev",
hierarchical: true,
langCode: "en_US"
)
Last modified: 18 February 2025