question: public void removeEventListener ( MultimediaMessagingSessionListener listener ) throws RcsServiceNotAvailableException , RcsGenericException { if ( mApi == null ) { throw new RcsServiceNotAvailableException ( ) ; } try { WeakReference < IMultimediaMessagingSessionListener > weakRef = mMultimediaMessagingSessionListeners . remove ( listener ) ; if ( weakRef == null ) { return ; } IMultimediaMessagingSessionListener multimediaMessagingSessionListener = weakRef . get ( ) ; if ( multimediaMessagingSessionListener != null ) { mApi . removeEventListener2 ( multimediaMessagingSessionListener ) ; } } catch ( Exception e ) { RcsIllegalArgumentException . assertException ( e ) ; throw new RcsGenericException ( e ) ; } }
target:  Removes a listener on multimedia messaging session events