Broadcast intent vs multicast listener implementation on Android -
i want enable several objects subscribe event @ same time.
currently see 2 approaches: send broadcast intents, or implement multicast listeners (a manager class containing array of subscribed listeners, , subscribing , unsubscribing functionality) such built-in events in c#.
which best practice on android? or there other approach worth considering?
you may try localbroadcastmanager, lightweight solution sending broadcast intents, , part of android support library v4.
Comments
Post a Comment