Skip to content
changelog

SDKs Upgrade

May 14, 2025

We’ve upgraded our Low Code SDKs for iOS and Android, adding callbacks logic to the banner components. This improvement enhances control and flexibility over banner behavior, requiring small changes to the implementations.

iOS (Swift)

This new version introduces structured callbacks to TopsortBanner, such as onNoWinners, onError, onImageLoad, and buttonClickedAction, allowing better control of the behavior of the banner. The library implementation changes from:

TopsortBanner(apiKey:..., url:..., ...)

To:

TopsortBanner(bannerAuctionBuilder: .init(slotId: ..., deviceType: ...))
.onNoWinners { ... }
.onError { error in ... }
.onImageLoad { ... }
.buttonClickedAction { response in ... }
.frame(maxHeight: 50)
.clipped()

Please refer to our Online Documentation for more information.

Android (Kotlin and Java)

The Kotlin SDK v2.0.0 now supports callbacks for TopsortBanner, including onNoWinners, onError, onImageLoad, and onButtonClicked. This improves banner interaction logic and simplifies integration within Android UI flows:

TopsortBanner(...)
.onNoWinners { /* handle no winner */ }
.onError { error -> /* handle error */ }
.onImageLoad { /* handle success */ }
.onButtonClicked { response -> /* handle click */ }

The Java SDK follows the same changes as Kotlin. Java 17 or higher is required to use this SDK version.

Please refer to our Online Documentation for more information.