Ditto 1.1.4
Public Member Functions | List of all members
DittoSDK.NoOpAuthenticationDelegate Class Reference
Inheritance diagram for DittoSDK.NoOpAuthenticationDelegate:
DittoSDK.IDittoAuthenticationDelegate

Public Member Functions

void AuthenticationExpiringSoon (DittoAuthenticator authenticator, long secondsRemaining)
 Warns that the Ditto authentication token is getting old. More...
 
void AuthenticationRequired (DittoAuthenticator authenticator)
 There is no Ditto authentication token or it has expired. Sync will not work until there is a successful login using one of the login methods on DittoAuthenticator. More...
 
- Public Member Functions inherited from DittoSDK.IDittoAuthenticationDelegate
void AuthenticationRequired (DittoAuthenticator authenticator)
 There is no Ditto authentication token or it has expired. Sync will not work until there is a successful login using one of the login methods on DittoAuthenticator. More...
 
void AuthenticationExpiringSoon (DittoAuthenticator authenticator, long secondsRemaining)
 Warns that the Ditto authentication token is getting old. More...
 
void AuthenticationStatusDidChange (DittoAuthenticator authenticator)
 Notifies the authentication delegate that the authentication status did change. Use the authenticators property Status to query for the current authentication status. More...
 

Member Function Documentation

◆ AuthenticationExpiringSoon()

void DittoSDK.NoOpAuthenticationDelegate.AuthenticationExpiringSoon ( DittoAuthenticator  authenticator,
long  secondsRemaining 
)
inline

Warns that the Ditto authentication token is getting old.

Ditto will attempt to refresh tokens periodically, starting from halfway through the token's validity period. This reduces the risk of authentication expiring while the user is offline.

The refresh will happen automatically if Ditto has a suitable refresh token. If new credentials are required, such as a third-party token or a username/password, then Ditto does not cache that information and you must submit it again using one of the login methods on DittoAuthenticator.

Parameters
authenticatorProvides access to authentication methods for logging on to Ditto Cloud.
secondsRemainingThe number of seconds remaining until the currently authenticated session will expire.

Implements DittoSDK.IDittoAuthenticationDelegate.

◆ AuthenticationRequired()

void DittoSDK.NoOpAuthenticationDelegate.AuthenticationRequired ( DittoAuthenticator  authenticator)
inline

There is no Ditto authentication token or it has expired. Sync will not work until there is a successful login using one of the login methods on DittoAuthenticator.

Parameters
authenticatorProvides access to authentication methods for logging on to Ditto Cloud.

Implements DittoSDK.IDittoAuthenticationDelegate.