コード例 #1
0
    private void CheckForLoggedInUser()
    {
        var storedInfo = GoogleDriveSettings.LoadFromResources();

        if (storedInfo.CachedAccessToken == "")
        {
            _driveInfo.text = "no Google Drive connected.";
        }
        else
        {
            _driveInfo.text = "Google Drive connected.";
        }
    }
コード例 #2
0
 protected override void Awake()
 {
     base.Awake();
     settings = GoogleDriveSettings.LoadFromResources();
 }
コード例 #3
0
    public void LogoutUser()
    {
        var storedInfo = GoogleDriveSettings.LoadFromResources();

        storedInfo.DeleteCachedAuthTokens();
    }