2.0.0-alpha06
Pre-release- Added enabled changed listeners to
BackDispatcher
(#146) - Replaced
PredictiveBackDispatcher
with normal methods inBackDispatcher
(#147) - Added
BackDispatcher#connectOnBackPressedCallback
extension function (#148) - Added
BackHandler#isRegistered
method (#150) - Added
Bundle#putSerializableContainer
andBundle#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