예제 #1
0
        public void iDeviceEventSubscribeUnsubscribe()
        {
            iDeviceEventCallBack callback = null;

            Assert.Equal(iDeviceError.Success, this.api.iDevice.idevice_event_subscribe(callback, IntPtr.Zero));
            Assert.Equal(iDeviceError.Success, this.api.iDevice.idevice_event_unsubscribe());
        }
 public static extern iDeviceError idevice_event_subscribe(iDeviceEventCallBack callback, System.IntPtr userData);
예제 #3
0
 /// <summary>
 /// Register a callback function that will be called when device add/remove
 /// events occur.
 /// </summary>
 /// <param name="callback">
 /// Callback function to call.
 /// </param>
 /// <param name="user_data">
 /// Application-specific data passed as parameter
 /// to the registered callback function.
 /// </param>
 /// <returns>
 /// IDEVICE_E_SUCCESS on success or an error value when an error occured.
 /// </returns>
 public virtual iDeviceError idevice_event_subscribe(iDeviceEventCallBack callback, System.IntPtr userData)
 {
     return(iDeviceNativeMethods.idevice_event_subscribe(callback, userData));
 }