Example #1
0
 public void OnPeersAvailable(WifiP2pDeviceList peers)
 {
     Console.WriteLine(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PeerListListener - OnPeersAvailable");
     _devices = peers.DeviceList.ToList();
     foreach (var device in _devices)
     {
         Console.WriteLine(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PeerListListener - OnPeersAvailable - deviceName: {0} deviceAddress: {1} deviceStatus: {2} devicePrimaryDeviceType: {3}", device.DeviceName, device.DeviceAddress, device.Status, device.PrimaryDeviceType);
     }
 }
 public void OnPeersAvailable(WifiP2pDeviceList peers)
 {
     if (peersAvailable != null)
         peersAvailable(peers);
 }