Пример #1
0
    public void SignInServerAuth()
    {
        Action <bool> logInCallBack = (Action <bool>)((loggedIn) => {
            if (loggedIn)
            {
                PrintMessage("Google Login Success> " + LCGoogleLoginBridge.GSIUserName());
            }

            else
            {
                PrintMessage("Google Login Failed");
            }
        });

        LCGoogleLoginBridge.LoginUser(logInCallBack, false, true, false, null);
    }
Пример #2
0
    public void SignInDriveNoServer()
    {
        Action <bool> logInCallBack = (Action <bool>)((loggedIn) => {
            if (loggedIn)
            {
                PrintMessage("Google Login Drive Success> " + LCGoogleLoginBridge.GSIUserName());
            }

            else
            {
                PrintMessage("Google Login Drive Failed");
            }
        });

        //Scopes : https://developers.google.com/identity/protocols/googlescopes
        LCGoogleLoginBridge.LoginUser(logInCallBack, false, false, false,
                                      new List <string>()
        {
            "https://www.googleapis.com/auth/drive.readonly",
            "https://www.googleapis.com/auth/drive.photos.readonly"
        });
    }
Пример #3
0
 public void UserName()
 {
     PrintMessage("UserName: " + LCGoogleLoginBridge.GSIUserName());
 }