Skip to content

2.0.0-alpha06

Pre-release
Pre-release
Compare
Choose a tag to compare
@arkivanov arkivanov released this 09 Feb 15:51
· 83 commits to master since this release
9023afd
  • Added enabled changed listeners to BackDispatcher (#146)
  • Replaced PredictiveBackDispatcher with normal methods in BackDispatcher (#147)
  • Added BackDispatcher#connectOnBackPressedCallback extension function (#148)
  • Added BackHandler#isRegistered method (#150)
  • Added Bundle#putSerializableContainer and Bundle#getSerializableContainer extension functions (#149)

Breaking changes

This release contains some breaking changes in BackDispatcher interface.

The BackHandler interface got one new method - isRegistered(BackCallback). This can be used to check whether the callback is already registered or not.

The BackDispatcher interface got two new methods: addEnabledChangedListener and removeEnabledChangedListener . Now it's possible to receive notifications when the enabled state of BackDispatcher is changed (e.g. when a registered BackCallback becomes enabled or disabled, etc).

The PredictiveBackDispatcher interface is removed. The BackDispatcher interface now has four normal methods for controlling the predictive back gesture: startPredictiveBack, progressPredictiveBack, cancelPredictiveBack, plus the existing back method. This makes it much easier to delegate the gesture from BackCallback and AndroidX OnBackPressedCallback to BackDispatcher.

Versions and dependencies

Kotlin: 1.9.21
kotlinx-serialization: 1.6.2

Module lifecycle-coroutines

kotlinx-coroutines: 1.8.0-RC

Module lifecycle-reaktive

Reaktive: 2.0.1