public void broadcastDDPError ( String errorMsg ) { // let core know there was an error subscribing to a collection Intent broadcastIntent = new Intent ( ) ; broadcastIntent . setAction ( MESSAGE_ERROR ) ; broadcastIntent . putExtra ( MESSAGE_EXTRA_MSG , errorMsg ) ; LocalBroadcastManager . getInstance ( mContext ) . sendBroadcast ( broadcastIntent ) ; }
Used to notify event system of error events . Default behavior uses Android s LocalBroadcastManager . Override if you want to use a different eventbus .