code: public static Observable<Intent> fromLocalBroadcast(
              Context context,
              IntentFilter intentFilter) {
          LocalBroadcastRegistrar localBroadcastRegistrar = new LocalBroadcastRegistrar(
                  intentFilter,
                  LocalBroadcastManager.getInstance(context));
          return createBroadcastObservable(localBroadcastRegistrar, NO_OP_ORDERED_BROADCAST_STRATEGY);
      }
docs: Create {@link Observable} that wraps {@link BroadcastReceiver} and emits received intents.
  <p>
  This uses a {@link LocalBroadcastManager}
  
  @param context      the context the {@link BroadcastReceiver} will be created from
  @param intentFilter the filter for the particular intent
  @return {@link Observable} of {@link Intent} that matches the filter