Exemplo n.º 1
0
 public void OnClick(View view)
 {
    switch (view.GetId())
    {
       case R.Id.send_interactive_button:
          // Set sharing so that the share is started in onSignedIn.
          mSharing = true;
          mPlusClientFragment.SignIn(REQUEST_CODE_PLUS_CLIENT_FRAGMENT);
          break;
    }
 }
Exemplo n.º 2
0
 public void OnClick(View view)
 {
    switch (view.GetId())
    {
       case R.Id.sign_out_button:
          resetAccountState();
          mSignInFragment.SignOut();
          break;
       case R.Id.sign_in_button:
          mSignInFragment.SignIn(REQUEST_CODE_PLUS_CLIENT_FRAGMENT);
          break;
       case R.Id.revoke_access_button:
          resetAccountState();
          mSignInFragment.RevokeAccessAndDisconnect();
          break;
    }
 }