Am I correct in thinking that I cannot send 'sticky' broadcasts using LocalBroadcastManager ? If so this seems very short-sighted particularly if an app uses Fragments that can be swapped in and out during the app lifecycle and relies on broadcast data..
Am I correct in thinking that I cannot send 'sticky' broadcasts using LocalBroadcastManager ?
Yes, you are correct.
If so this seems very short-sighted particularly if an app uses Fragments that can be swapped in and out during the app lifecycle and relies on broadcast data..
You are welcome to take the source code to LocalBroadcastManager
and create your own sticky extensions to it, if you so desire. Personally, I would use other means of storing such data (model fragments, singletons, or persistent data stores, depending on scenario).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With