Fonts
You can implement custom fonts throughout the SDK using this implementation.
Types supported:
- Regular (Fonts.REGULAR)
- Medium (Fonts.MEDIUM)
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. |
onInitCompleteListener | listener 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);