Amazon.CognitoIdentity.CognitoAWSCredentials.CacheIdentityId C# (CSharp) Method

CacheIdentityId() public method

Caches the identity id retrieved from Cognito.

For Unity, the Identity id is stored in PlayerPrefs property.

public CacheIdentityId ( string identityId ) : void
identityId string The Cognito identity id to cache
return void
        public virtual void CacheIdentityId(string identityId)
        {
            var settings = ServiceFactory.Instance.GetService<IApplicationSettings>();
            settings.SetValue(GetNamespacedKey(IDENTITY_ID_CACHE_KEY), identityId, ApplicationSettingsMode.Local);
        }