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