/** * */ public void RegisterDeviceRemovalCallback(YAPI.DeviceUpdateHandler removalCallback) { _removalCallback += removalCallback; }
public void RegisterDeviceChangeCallback(YAPI.DeviceUpdateHandler changeCallback) { _namechgCallback = changeCallback; }
/** * */ public void RegisterDeviceArrivalCallback(YAPI.DeviceUpdateHandler arrivalCallback) { _arrivalCallback = arrivalCallback; }
/** * <summary> * Register a callback function, to be called each time * a device is unplugged. * <para> * This callback will be invoked while <c>yUpdateDeviceList</c> * is running. You will have to call this function on a regular basis. * </para> * </summary> * <param name="removalCallback"> * a procedure taking a <c>YModule</c> parameter, or <c>null</c> * to unregister a previously registered callback. * </param> */ public static void RegisterDeviceRemovalCallback(YAPI.DeviceUpdateHandler removalCallback) { imm_GetYCtx().RegisterDeviceRemovalCallback(removalCallback); }
public static void RegisterDeviceChangeCallback(YAPI.DeviceUpdateHandler changeCallback) { imm_GetYCtx().RegisterDeviceChangeCallback(changeCallback); }
/** * <summary> * Register a callback function, to be called each time * a device is plugged. * <para> * This callback will be invoked while <c>yUpdateDeviceList</c> * is running. You will have to call this function on a regular basis. * </para> * </summary> * <param name="arrivalCallback"> * a procedure taking a <c>YModule</c> parameter, or <c>null</c> * to unregister a previously registered callback. * </param> */ public static void RegisterDeviceArrivalCallback(YAPI.DeviceUpdateHandler arrivalCallback) { imm_GetYCtx().RegisterDeviceArrivalCallback(arrivalCallback); }