コード例 #1
0
        public WelcomeViewModel(IPermissions permissionService, ISpeakerVerification verificationService)
        {
            _permissionService   = permissionService;
            _verificationService = verificationService;

            CheckAndGoTrainCommand  = new Command(async() => await CheckAndTrain());
            CheckAndGoVerifyCommand = new Command(async() => await CheckAndVerify());
            ClearCommand            = new Command(Clear);
        }
コード例 #2
0
        public AudioVerifyViewModel(ISpeakerVerification verificationService)
        {
            StateMessage = "Hold on...";

            _beeper = DependencyService.Get <IBeepPlayer>();
            _verificationService = verificationService;

            Recorder.AudioInputReceived += async(object sender, string e) => { await Recorder_AudioInputReceived(sender, e); };
        }