Fonts

You can implement custom fonts throughout the SDK using this implementation.

Types supported:

  1. Regular (Fonts.REGULAR)
  2. Medium (Fonts.MEDIUM)

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.
onInitCompleteListenerlistener object which holds the initialization success and failure methods. (you can pass this as null if you don't need callbacks). Learn more.

Syntax:

CopiedInitConfig initConfig = new InitConfig();
initConfig.setFont(<fontType>, <fontPath>); 
initConfig.setFont(<fontType>, <fontPath>);

ZohoSalesIQ.init(Application applicationContext, String appKey, String accesssKey,            
InitConfig initConfig, OnInitCompleteListener onInitCompleteListener);

Example

CopiedInitConfig initConfig = new InitConfig();
initConfig.setFont(Fonts.REGULAR, "fonts/CaviarDreams.ttf"); 
initConfig.setFont(Fonts.MEDIUM, "fonts/Roboto.ttf");

ZohoSalesIQ.init(this, "appKey", "accesssKey", initConfig, null);