com.zoho.accounts.externalframework
Class ZohoSDK
- java.lang.Object
- com.zoho.accounts.externalframework.ZohoSDK
public class ZohoSDK extends java.lang.Object
Method Summary
To get the instance of the ZohoSDK |
To check whether the user is signed in or not. |
To display the Login screen to the user. |
To set ZohoToken callback using this method. |
To display the login screen with custom colors. |
To initiate the token request asynchronously. |
To initiate the token request synchronously. |
To initiate the token request for WMS asynchronously. |
To initiate the token request for WMS synchronously. |
To log out from the session |
To check whether the user has logged out from their account or not. |
To get the client secret |
To set the client secret |
To initialize Zoho SDK |
To initialize Zoho SDK |
To get the client id |
To set the client id |
To get the scopes |
To set the scopes |
Method Detail
getInstance
To get the instance of ZohoSDK
public static ZohoSDK getInstance(android.content.Context appContext)
isUserSignedIn
To check whether the user is signed in or not.
public boolean isUserSignedIn()
presentLoginScreen
To display the Login screen to the user.
public void presentLoginScreen(android.content.Context context, com.zoho.accounts.externalframework.ZohoTokenCallback zohoTokenCallback, @Nullable java.util.HashMap<java.lang.String,java.lang.String> params)
setZohoTokenCallback
To set ZohoToken callback using this method.
public static void setZohoTokenCallback(com.zoho.accounts.externalframework.ZohoTokenCallback tokenCallback)
presentLoginScreen
To display the login screen with custom colors.
public void presentLoginScreen(android.content.Context context, com.zoho.accounts.externalframework.ZohoTokenCallback zohoTokenCallback, @Nullable java.util.HashMap<java.lang.String,java.lang.String> extraParams, int color)
getToken
To initiate the token request asynchronously.
public void getToken(com.zoho.accounts.externalframework.ZohoTokenCallback callback)
getToken
To initiate the token request synchronously.
public com.zoho.accounts.externalframework.ZohoToken getToken()
getTokenForWMS
To initiate the token request for WMS asynchronously.
public void getTokenForWMS(com.zoho.accounts.externalframework.ZohoTokenCallback callback)
getTokenForWMS
To initiate the token request for WMS synchronously.
public com.zoho.accounts.externalframework.ZohoToken getTokenForWMS()
revoke
To log out from the session
public void revoke(ZohoSDK.OnLogoutListener logoutListener)
checkAndLogout
To check whether the user has logged out from their account or not.
public java.lang.Boolean checkAndLogout()
getClientSecret
To get the client secret
public java.lang.String getClientSecret()
setClientSecret
To set the client secret
public void setClientSecret(java.lang.String clientSecret)
init
To initialize ZohoSDK
public void init(java.lang.String clientID, java.lang.String clientSecret, java.lang.String scopes, boolean showLogs)
init
To initialize ZohoSDK
public void init(java.lang.String scopes, boolean showlogs)
getClientID
To get the client id
public java.lang.String getClientID()
setClientID
To set the client ID
public void setClientID(java.lang.String clientID)
getScopes
To get the scopes
public java.lang.String getScopes()
setScopes
To set the scopes
public void setScopes(java.lang.String scopes)