15.1.0
Added
- Adds
dismiss()toBraze.Banner.Contextanddismiss(using:)toBraze.Bannerto dismiss a banner when using a custom UI.- Recommended to use
Braze.Banner.Context.dismiss. - Both methods must be called from the main thread.
- Calling either method fires the
onDismisscallback on any registeredBrazeBannerPlacementfor that placement ID. - Available in Objective-C as
-[BRZBannerContext dismiss]and-[BRZBanner dismissUsing:].
- Recommended to use
- Adds example implementations for building a custom UI with banners.
- See Support/Examples/Swift/Sources/Banners-Custom-UI/ for a Swift example.
- See Support/Examples/ObjC/Sources/Banners-Custom-UI/ for an Objective-C example.
- Adds
Braze.ContentCards.getCachedContentCards(_:),Braze.ContentCards.getUnviewedCards(_:), andBraze.ContentCards.getLastUpdate(_:)— asynchronous, callback-based getters that deliver on the main thread.- Deprecates
Braze.ContentCards.cards,Braze.ContentCards.unviewedCards, andBraze.ContentCards.lastUpdatein favor of the new getters.- These properties will be removed in
17.0.0.
- These properties will be removed in
- Deprecates
Fixed
- Fixes a bug in the default Content Cards UI that would prevent image loading if multiple cards contained the same remote image URL. (#176)
- If multiple cards contained the same image URL, only the first card to finish loading would display the image, whereas all others would indefinitely display the loading spinner.