public async Task <BarcodeReaderBase.Result> EnableAsync(bool enabled)
        {
            if (enabled)
            {
                using (var inputMethodManager =
                           (InputMethodManager)_currentActivity.AppContext.GetSystemService(Context.InputMethodService))
                {
                    inputMethodManager.HideSoftInputFromWindow(_currentActivity.Activity.CurrentFocus.WindowToken,
                                                               HideSoftInputFlags.None);
                }
            }

            var result = await BarcodeReader.EnableAsync(enabled);

            if (result.Code == 0)
            {
                IsReaderEnabled = enabled;
            }

            return(result);
        }