Esempio n. 1
0
 private unsafe void NotifyCallback(ref AMDeviceNotificationCallbackInfo callback)
 {
     if (callback.msg == NotificationMessage.Connected)
     {
         this.iPhoneHandle = callback.dev;
         if (this.ConnectToPhone())
         {
             this.OnConnect(new ConnectEventArgs(callback));
         }
     }
     else if (callback.msg == NotificationMessage.Disconnected)
     {
         this.connected = false;
         this.OnDisconnect(new ConnectEventArgs(callback));
     }
 }
Esempio n. 2
0
 private unsafe void NotifyCallback(ref AMDeviceNotificationCallbackInfo callback)
 {
     if (callback.msg == NotificationMessage.Connected)
     {
         this.iPhoneHandle = callback.dev;
         if (this.ConnectToPhone())
         {
             this.OnConnect(new ConnectEventArgs(callback));
         }
     }
     else if (callback.msg == NotificationMessage.Disconnected)
     {
         this.connected = false;
         this.OnDisconnect(new ConnectEventArgs(callback));
     }
 }
Esempio n. 3
0
 internal unsafe ConnectEventArgs(AMDeviceNotificationCallbackInfo cbi)
 {
     this.message = cbi.msg;
     this.device  = cbi.dev;
 }
 internal unsafe ConnectEventArgs(AMDeviceNotificationCallbackInfo cbi)
 {
     this.message = cbi.msg;
     this.device = cbi.dev;
 }