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