Example #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));
     }
 }
Example #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));
     }
 }
 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;
 }