void setInstallOrOpenCallback ( Branch . BranchReferralInitListener callback ) { synchronized ( reqQueueLockObject ) { for ( ServerRequest req : queue ) { if ( req != null ) { if ( req instanceof ServerRequestRegisterInstall ) { ( ( ServerRequestRegisterInstall ) req ) . setInitFinishedCallback ( callback ) ; } else if ( req instanceof ServerRequestRegisterOpen ) { ( ( ServerRequestRegisterOpen ) req ) . setInitFinishedCallback ( callback ) ; } } } } }
Sets the given callback to the existing open or install request in the queue