/// <summary>
 /// Check to see if there are any devices connected
 /// </summary>
 public async Task CheckForDevicesAsync()
 {
     try
     {
         await _DeviceListener.CheckForDevicesAsync();
     }
     catch
     {
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Check to see if there are any devices connected
 /// </summary>
 public async Task CheckForDevicesAsync()
 {
     try
     {
         await _DeviceListener.CheckForDevicesAsync().ConfigureAwait(false);
     }
     catch
     {
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Check to see if there are any devices connected
        /// </summary>
        public async Task CheckForDevicesAsync()
        {
            try
            {
                await _DeviceListener.CheckForDevicesAsync();
            }
#pragma warning disable CA1031
            catch
            {
            }
#pragma warning restore CA1031
        }
Esempio n. 4
0
        public override async void OnReceive(Context context, Intent intent)
        {
            //No need to get the device because we're going to enumerate them anyway...
            //var device = intent.GetParcelableExtra(UsbManager.ExtraDevice) as UsbDevice;

            await _DeviceListener.CheckForDevicesAsync();
        }