示例#1
0
        /// <summary>
        /// Asks the user to touch the the band.
        /// CAUTION: Can only be cancelled by disconnecting the band.
        /// </summary>
        /// <exception cref="DeviceDisconnectedException">Device is disconnected.</exception>
        public async Task AskUserForTouchAsync()
        {
            if (!Connected)
            {
                throw new DeviceDisconnectedException("The device is currently not connected.");
            }

            await _authentication.AskForUserTouchAsync();
        }