the onsuccesscallback passed as argument in this method will be referenced as a weakreference inside rosieusecase and usecaseparams to avoid memory leaks during the activity lifecycle pause-destroy stage . remember to keep a strong reference of your onsuccesscallback instance if needed . concode_field_sep WeakReference<OnErrorCallback> onErrorCallback concode_elem_sep CallbackScheduler callbackScheduler concode_elem_sep WeakReference<OnSuccessCallback> onSuccessCallback concode_field_sep CallbackScheduler getCallbackScheduler concode_elem_sep void setOnErrorCallback concode_elem_sep void invokeMethodInTheCallbackScheduler concode_elem_sep void validateCallbackScheduler concode_elem_sep void notifyError concode_elem_sep void notifySuccess concode_elem_sep void setCallbackScheduler
void function ( OnSuccessCallback arg0 ) { if ( arg0 != null ) { this . onSuccessCallback = new WeakReference < > ( arg0 ) ; } }