public class

AsyncUserStoreClient

extends Object
java.lang.Object
   ↳ com.evernote.client.android.AsyncUserStoreClient

Class Overview

An Async wrapper for UserStore.Client Use these methods with a OnClientCallback to get make network requests

Summary

Public Methods
void authenticate(String username, String password, String consumerKey, String consumerSecret, OnClientCallback<AuthenticationResult> callback)
Asynchronous wrapper
void authenticateLongSession(String username, String password, String consumerKey, String consumerSecret, String deviceIdentifier, String deviceDescription, OnClientCallback<AuthenticationResult> callback)
Asynchronous wrapper
void authenticateToBusiness(String authenticationToken, OnClientCallback<AuthenticationResult> callback)
Asynchronous wrapper
void checkVersion(String clientName, short edamVersionMajor, short edamVersionMinor, OnClientCallback<Boolean> callback)
Asynchronous wrapper
void getBootstrapInfo(String locale, OnClientCallback<BootstrapInfo> callback)
Asynchronous wrapper
UserStore.Client getClient()
If direct access to the Note Store is needed, all of these calls are synchronous
void getNoteStoreUrl(OnClientCallback<String> callback)
Asynchronous wrapper
void getPremiumInfo(OnClientCallback<PremiumInfo> callback)
Asynchronous wrapper
void getPublicUserInfo(String username, OnClientCallback<PublicUserInfo> callback)
Asynchronous wrapper
void getUser(OnClientCallback<User> callback)
Asynchronous wrapper
boolean isBusinessUser()
Synchronous call
void isBusinessUserAsync(OnClientCallback<Boolean> callback)
Asynchronous call
void refreshAuthentication(String authenticationToken, OnClientCallback<AuthenticationResult> callback)
Asynchronous wrapper
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void authenticate (String username, String password, String consumerKey, String consumerSecret, OnClientCallback<AuthenticationResult> callback)

Asynchronous wrapper

public void authenticateLongSession (String username, String password, String consumerKey, String consumerSecret, String deviceIdentifier, String deviceDescription, OnClientCallback<AuthenticationResult> callback)

public void authenticateToBusiness (String authenticationToken, OnClientCallback<AuthenticationResult> callback)

Asynchronous wrapper

public void checkVersion (String clientName, short edamVersionMajor, short edamVersionMinor, OnClientCallback<Boolean> callback)

Asynchronous wrapper

public void getBootstrapInfo (String locale, OnClientCallback<BootstrapInfo> callback)

Asynchronous wrapper

public UserStore.Client getClient ()

If direct access to the Note Store is needed, all of these calls are synchronous

Returns
  • UserStore.Client

public void getNoteStoreUrl (OnClientCallback<String> callback)

Asynchronous wrapper

public void getPremiumInfo (OnClientCallback<PremiumInfo> callback)

Asynchronous wrapper

public void getPublicUserInfo (String username, OnClientCallback<PublicUserInfo> callback)

Asynchronous wrapper

public void getUser (OnClientCallback<User> callback)

Asynchronous wrapper

See Also

public boolean isBusinessUser ()

Synchronous call

Returns
  • the result of a user belonging to a business account
Throws
EDAMSystemException
EDAMUserException
TException

public void isBusinessUserAsync (OnClientCallback<Boolean> callback)

Asynchronous call

public void refreshAuthentication (String authenticationToken, OnClientCallback<AuthenticationResult> callback)

Asynchronous wrapper