Skip to content

v1.1b1

Pre-release
Pre-release
Compare
Choose a tag to compare
@thuytrinh thuytrinh released this 18 Mar 14:25
· 998 commits to develop since this release

This beta provides BookingResolver that is corresponding to TKInterAppCommunicator on iOS. When you got a Booking object and a list of external actions obtained via getExternalActions(), BookingResolver can help you perform each of action by invoking performExternalActionAsync(). The method returns an Observable so that you can retrieve the BookingAction asynchronously. Why asynchronous? When it comes to resolving an action related to FlitWays, BookingResolver delegates determining exact addresses of locations to Geocoders which require networking. So by subscribing an Observable, you can avoid unnecessary UI blocking.

The BookingAction returned can be useful. It can depict whether there's a built-in app (e.g. Uber, Lyft apps) (via hasApp()) so that you can start perform deep-linking by calling, for example, startActivity() with BookingAction.data().

Other than that, you may wonder how to show things like Open Uber, Book with FlitWays or Open Lyft. getTitleForExternalAction() will do the trick.

In order to know more about BookingResolver's behaviors, you can take a look at its unit test.