The second Android 11 Developer Preview is now available, test it out and share your feedback.

Localbroadcastmanager

Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
December 17, 2018 1.0.0 - - 1.1.0-alpha01

Version 1.1.0

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 use Intent even though objects live in only one process and never leave it. For this same reason, it doesn’t follow feature-wise BroadcastManager .

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 be LiveData or reactive streams.