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 ?
Share
Yes, you are correct.
You are welcome to take the source code to
LocalBroadcastManagerand 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).