To display a banner, you need to listen to the searcher
’s result update, extract the userData
which contains the banner information, and then use that information to update your UI.
Swift
searcher.response.subscribePast { response -> val msg = response?.userDataOrNull?.firstOrNull()?.getPrimitiveOrNull("promo_content")?.content // display msg in a banner if it is available }