/// <summary> /// Check to see if there are any devices connected /// </summary> public async Task CheckForDevicesAsync() { try { await _DeviceListener.CheckForDevicesAsync(); } catch { } }
/// <summary> /// Check to see if there are any devices connected /// </summary> public async Task CheckForDevicesAsync() { try { await _DeviceListener.CheckForDevicesAsync().ConfigureAwait(false); } catch { } }
/// <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 }
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(); }