init()
This API can be used to initialize the SDK with the completion callback.
Parameters:
Name | Description |
applicationContext | context of your application |
appKey | appKey generated for your package |
accessKey | accessKey generated for your package |
initConfig | class object that can be used to set the custom fonts for SDK (you can pass this as null if you don't need custom fonts). Learn more. |
onInitCompleteListener | listener object which holds the initialization success and failure methods. |
Syntax:
CopiedZohoSalesIQ.init(Application applicationContext, String appKey, String accesssKey, InitConfig initConfig, OnInitCompleteListener onInitCompleteListener);
CopiedInitConfig initConfig = new InitConfig();
initConfig.setFont(Fonts.REGULAR, <fontPath>);
ZohoSalesIQ.init(this, "appKey", "accesssKey", initConfig, new OnInitCompleteListener() {
@Override
public void onInitComplete() {
//your code on successfull initialization
}
@Override
public void onInitError() {
//your code on failure
}
});