public override MetaWearController addModuleCallback(ModuleCallbacks callback) { byte moduleOpcode = callback.getModule().modID; if (!moduleCallbackMap.ContainsKey(moduleOpcode)) { moduleCallbackMap[moduleOpcode] = new List <ModuleCallbacks>(); } moduleCallbackMap[moduleOpcode].Add(callback); return(this); }
public override void removeModuleCallback(ModuleCallbacks callback) { moduleCallbackMap[callback.getModule().modID].Remove(callback); }
public abstract void removeModuleCallback(ModuleCallbacks callback);
/** * Add a module callback for the broadcast receiver * @param callback Module callback to add * @return The calling object */ public abstract MetaWearController addModuleCallback(ModuleCallbacks callback);