question: public void removeEventListener ( VideoSharingListener listener ) throws RcsServiceNotAvailableException , RcsGenericException { if ( mApi == null ) { throw new RcsServiceNotAvailableException ( ) ; } try { WeakReference < IVideoSharingListener > weakRef = mVideoSharingListeners . remove ( listener ) ; if ( weakRef == null ) { return ; } IVideoSharingListener rcsListener = weakRef . get ( ) ; if ( rcsListener != null ) { mApi . removeEventListener2 ( rcsListener ) ; } } catch ( Exception e ) { RcsIllegalArgumentException . assertException ( e ) ; throw new RcsGenericException ( e ) ; } }
target:  Removes a listener on video sharing events