public void removeEventListener(RcsServiceRegistrationListener listener) throws RcsServiceNotAvailableException, RcsGenericException {
  if (mApi == null) {
    throw new RcsServiceNotAvailableException();
  }
  try {
    WeakReference<IRcsServiceRegistrationListener> weakRef=mRegistrationListeners.remove(listener);
    if (weakRef == null) {
      return;
    }
    IRcsServiceRegistrationListener rcsListener=weakRef.get();
    if (rcsListener != null) {
      callApiMethod("removeEventListener",rcsListener,IRcsServiceRegistrationListener.class);
    }
  }
 catch (  Exception e) {
    throw new RcsGenericException(e);
  }
}

public void removeEventListener ( RcsServiceRegistrationListener listener ) throws RcsServiceNotAvailableException , RcsGenericException { if ( mApi == null ) { throw new RcsServiceNotAvailableException ( ) ; } try { WeakReference < IRcsServiceRegistrationListener > weakRef = mRegistrationListeners . remove ( listener ) ; if ( weakRef == null ) { return ; } IRcsServiceRegistrationListener rcsListener = weakRef . get ( ) ; if ( rcsListener != null ) { callApiMethod ( "removeEventListener" , rcsListener , IRcsServiceRegistrationListener . class ) ; } } catch ( Exception e ) { throw new RcsGenericException ( e ) ; } }
removes a listener on service registration events
