Banner Item
class BannerItem(var id: String? = null, var bannerUrl: String? = null, var webLink: String? = null)
BannerItem — represents a promotional or informational banner for the UI.
Typically retrieved via com.advantahealth.api.ui.UserInterface.getBannerImages and displayed in carousels or on the home/dashboard screen.
Per the product banner-click rule, when the banner is tapped open webLink (the banner's hyperlink), not the bannerUrl image.
Android (Kotlin) — rendering a banner carousel
lifecycleScope.launch {
val banners = AFCore.userInterface().getBannerImages()
bannerCarousel.submitList(banners)
}Content copied to clipboard
iOS (Swift) — showing banners
Task {
let banners = try await AFCore.shared.userInterface().getBannerImages()
self.bannerCarousel.update(banners)
}Content copied to clipboard