Esempio n. 1
0
 private async void SetLoading(bool val)
 {
     if (val)
     {
         isPinging = true;
         UpdateUi();
         await PingGoogleServer();
     }
     else
     {
         isPinging = false;
         UpdateUi();
         Intent intentOpenSettings = new Intent(Settings.ActionDataRoamingSettings);
         _context.StartActivityForResult(intentOpenSettings, 0);
     }
 }
Esempio n. 2
0
 public Task <AuthCredential> GetCredentialAsync(FragmentActivity activity)
 {
     _tcs = new TaskCompletionSource <AuthCredential>();
     activity.StartActivityForResult(_signInClient.SignInIntent, RequestCodeSignIn);
     return(_tcs.Task);
 }