public virtual pspBaseCallback removeCallback(pspBaseCallback callback) { if (!callbacks.Remove(callback)) { return(null); } readyCallbacks.Remove(callback); return(callback); }
public virtual bool addCallback(pspBaseCallback callback) { if (hasCallback(callback)) { return(true); } if (NumberOfCallbacks >= maxNumberOfCallbacks) { return(false); } if (registerOnlyLastCallback) { callbacks.Clear(); } callbacks.Add(callback); return(true); }
public virtual bool isCallbackReady(pspBaseCallback callback) { return(readyCallbacks.Contains(callback)); }
public virtual bool hasCallback(pspBaseCallback callback) { return(callbacks.Contains(callback)); }