BannerItem

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)
}

iOS (Swift) — showing banners

Task {
let banners = try await AFCore.shared.userInterface().getBannerImages()
self.bannerCarousel.update(banners)
}

Constructors

Link copied to clipboard
constructor(id: String? = null, bannerUrl: String? = null, webLink: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
var id: String?
Link copied to clipboard

Functions

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