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.
Properties
id Unique identifier of the banner.
bannerUrl URL of the banner image (nullable).
webLink Optional URL to open when the banner is tapped.
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