init()

This API can be used to initialize the SDK with the completion callback.

Parameters:

NameDescription
applicationContextcontext of your application
appKeyappKey generated for your package
accessKeyaccessKey generated for your package 
initConfigclass 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.
onInitCompleteListenerlistener 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
            }
});