@ MainThread private void subscribeViewStateConsumerActually ( @ NonNull final V view ) { if ( view == null ) { throw new NullPointerException ( "View is null" ) ; } if ( viewStateConsumer == null ) { throw new NullPointerException ( ViewStateConsumer . class . getSimpleName ( ) + " is null. This is a Mosby internal bug. Please file an issue at https://github.com/sockeqwe/mosby/issues" ) ; } viewRelayConsumerDisposable = viewStateBehaviorSubject . subscribe ( new Consumer < VS > ( ) { @ Override public void accept ( VS vs ) throws Exception { viewStateConsumer . accept ( view , vs ) ; } } ) ; }
Actually subscribes the view as consumer to the internally view relay .