public void broadcastSubscriptionChanged ( String subscriptionName , String changetype , String docId ) { Intent broadcastIntent = new Intent ( ) ; broadcastIntent . setAction ( MESSAGE_SUBUPDATED ) ; broadcastIntent . putExtra ( MESSAGE_EXTRA_SUBNAME , subscriptionName ) ; broadcastIntent . putExtra ( MESSAGE_EXTRA_CHANGETYPE , changetype ) ; broadcastIntent . putExtra ( MESSAGE_EXTRA_CHANGEID , docId ) ; LocalBroadcastManager . getInstance ( mContext ) . sendBroadcast ( broadcastIntent ) ; }
Used to notify event system of subscription change events . Default behavior uses Android s LocalBroadcastManager . Override if you want to use a different eventbus .