Launcher Button Customization for Android
You can use this API to customize the position and mode of the Launcher Button. You can choose the mode of the launcher button according to your application needs. There are two modes:
Static mode - In this mode, the SalesIQ widget is fixed at the bottom right corner of the application screen. You can have the launcher behavior as static by using ZohoSalesIQ.LAUNCHER_MODE_STATIC.
var launcherProperties = {};
launcherProperties.mode = ZohoSalesIQ.LAUNCHER_MODE_STATIC;
//Initialize with the launcher mode
Floating mode - In this mode, the SalesIQ widget is moveable within the application screen. You can have the launcher behavior as floating by using ZohoSalesIQ.LAUNCHER_MODE_FLOATING.
var launcherProperties = {};
launcherProperties.mode = ZohoSalesIQ.LAUNCHER_MODE_FLOATING;
//Initialize with the launcher mode
Follow the steps below to customize the mode and position of the launcher button:
Step 1: First, you should create the LauncherProperties object by including the mode and positions per your needs.
var launcherProperties = {};
launcherProperties.mode = ZohoSalesIQ.LAUNCHER_MODE_FLOATING; //Initialize with the launcher mode
launcherProperties.x = 0; //This API applies only in FLoating mode. Launcher 'x' position. The gravity of the launcher view is TOP|START. So X = 0 & Y= 0 align the view in the top left. x should be 0 or device width.
launcherProperties.y = 0;//This API applies only in FLoating mode. Launcher's y position. Gravity of launcher view is to launcherProperties.setY(0);
Note: x and y values must be given in pixel units.
Step 2: Then, use the following API to set the LauncherProperties.
ZohoSalesIQ.setLauncherPropertiesForAndroid(launcherProperties);