예제 #1
0
 void HandlePopUpAlertAboutEmotionTriggered(object sender, AlertMessageEventArgs e)
 {
     Device.BeginInvokeOnMainThread(async() =>
     {
         var userResponseToAlert = await DisplayAlert(e.Title, e.Message, "OK", "Cancel");
         ViewModel.EmotionPopUpAlertResponseCommand?.Execute(new EmotionPopupResponseModel(userResponseToAlert, e.Player));
     });
 }
예제 #2
0
        void HandleDisplayEmotionBeforeCameraAlert(object sender, AlertMessageEventArgs e)
        {
            var  alertMessage        = e.Message;
            bool userResponseToAlert = false;

            Device.BeginInvokeOnMainThread(async() =>
            {
                userResponseToAlert = await DisplayAlert(alertMessage.Title, alertMessage.Message, "OK", "Cancel");

                _viewModel.UserResponseToAlert      = userResponseToAlert;
                _viewModel.HasUserAcknowledgedPopUp = true;
            });
        }