Skip to content

Sailthru Mobile Android SDK 16.0.0

Compare
Choose a tag to compare
@igstewart3 igstewart3 released this 27 Jan 19:45
9e530ec

Features

Coroutines support is here! This release adds a collection of extension methods that allow the asynchronous functionality in the SDK to be called in a suspendible way in coroutines. There are two variations available for each piece of functionality:

  • methods that return a Result
  • methods that return the desired outcome directly or throw an exception on failure

We have also added three SharedFlow instances as an alternative to providing listeners for SDK events:

  • notificationReceivedFlow - for handling events when notifications arrive on the device
  • notificationTappedFlow - for handling events when notifications are tapped by the user
  • notificationActionTappedFlow - for handling events when notification actions are tapped by the user

The internal workings of the SDK have also been updated to rely more heavily on coroutines in order to support these changes as well as to help tighten up some functionality under the hood.

All exposed interfaces with only a single method have also been changed to functional interfaces so they can be implemented as lambdas in Kotlin.

See our docs for more details on implementation.