get Banner Images
Retrieves the banner images.
Return
A list of BannerItem. May be empty if none are configured.
Throws
if retrieval fails.
Android (Kotlin)
lifecycleScope.launch {
try {
val banners = AFCore.userInterface().getBannerImages()
bannerAdapter.submitList(banners)
} catch (t: Throwable) {
showError("Failed to load banners: ${t.message}")
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
let banners = try await AFCore.shared.userInterface().getBannerImages()
self.updateBannerCarousel(banners)
} catch {
self.showError("Failed to load banners: \(error.localizedDescription)")
}
}Content copied to clipboard