void BindDeviceList()
        {
            var list = _blueToothService.GetDeviceList();

            DeviceList.Clear();
            foreach (var item in list)
            {
                DeviceList.Add(item);
            }
        }
 public string GetBlueToothDevices()
 {
     DefaultSelectedDevice = string.Empty;
     try
     {
         IList <string> list = _blueToothService.GetDeviceList();
         if (list.Count > 0)
         {
             DefaultSelectedDevice = Convert.ToString(list[0]);
         }
     }
     catch (Exception ex)
     {
     }
     return(DefaultSelectedDevice);
 }
Beispiel #3
0
        /// <summary>
        /// Get Bluetooth device list with DependencyService
        /// </summary>
        void BindDeviceList()
        {
            var list = _blueToothService.GetDeviceList();

            DeviceList.Clear();
            if (list != null)
            {
                foreach (var item in list)
                {
                    DeviceList.Add(item);
                }
            }
            else
            {
                DeviceList.Add("Bağlanılacak Cihaz Yok");
            }
        }