private async void _OnDeviceSelected(object sender, SelectedItemChangedEventArgs e)
        {
            if (e.SelectedItem == null)
            {
                return;
            }

            /*
             * IBluetoothDevice device = e.SelectedItem as IBluetoothDevice;
             * await Navigation.PushAsync(new BluetoothDeviceInfoPage(device));*/
            IWifiDirectDevice device = e.SelectedItem as IWifiDirectDevice;

            _SelectedDevice = device;
        }
 public WifiClientDirectConnection(WifiDirectManager wifiDirectManager, IWifiDirectDevice wifiDirectDevice)
 {
     _WifiDirectManager    = wifiDirectManager;
     this.WifiDirectDevice = wifiDirectDevice;
     _ConnectStateListener = new ConnectStateListener(this);
 }
Exemple #3
0
        public IClientConnection CreateClientConnection(IWifiDirectDevice targetDevice)
        {
            WifiClientDirectConnection connection = new WifiClientDirectConnection(this, targetDevice);

            return(connection);
        }