Localbroadcastmanager
Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |
---|---|---|---|---|
January 12, 2022 | 1.1.0 | - | - | - |
Feedback
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
Version 1.1.0
Version 1.1.0
January 12, 2022
androidx.localbroadcastmanager:localbroadcastmanager:1.1.0
is released. Version 1.1.0 contains these commits.
Important changes since 1.0.0
androidx.localbroadcastmanager
has been fully deprecated. There will be no further releases of this library. Developers should replace usages of LocalBroadcastManager
with other implementations of the observable pattern. Depending on the use case, suitable options may be LiveData
or reactive streams.
Version 1.1.0-rc01
December 15, 2021
androidx.localbroadcastmanager:localbroadcastmanager:1.1.0-rc01
is released. Version 1.1.0-rc01 contains these commits.
Version 1.1.0-alpha01
December 17, 2018
androidx.localbroadcastmanager
is being deprecated in version 1.1.0-alpha01
.
Reason
LocalBroadcastManager
is an application-wide event bus and embraces layer violations in your app; any component may listen to events from any other component.- It inherits unnecessary use-case limitations of system
BroadcastManager
; developers have to useIntent
even though objects live in only one process and never leave it. For this same reason, it doesn’t follow feature-wiseBroadcastManager
.
These add up to a confusing developer experience.
Replacement
- You can replace usage of
LocalBroadcastManager
with other implementations of the observable pattern. Depending on your use case, suitable options may beLiveData
or reactive streams.