-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hi!
I was working on a "location manager" that handles starting a Google Play Services client, then starts to listen to location changes, and sends them using EventBus.
Then I realized that, for battery saving reasons, the listening to locations changes should be only started if there is at least one interested party (a component that subscribed to my event). And it should stop when there are no more subscribers.
I didn't find a way to be notified when subscribers of a particular event are added/removed - did I miss an API or is this something that was considered? Or maybe there is another way to do this?
Thanks a lot.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request