Launcher Button Customization for Android:

This API allows customizing the position/mode of the Launcher Button. You can choose the mode of the launcher button according to your application needs. There are two modes:

  • ZohoSalesIQ.Launcher.STATIC_MODE -> Static mode - The button sticks at the bottom right corner of the application screen.

  • ZohoSalesIQ.Launcher.FLOATING_MODE -> Floating mode - The button is moveable within the application screen.

Follow the steps 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 as you wish.

By default, the launcher will be at the bottom right of the app. Use the ZohoSalesIQ.Launcher.HORIZONTAL_LEFT or ZohoSalesIQ.Launcher.HORIZONTAL_RIGHT and ZohoSalesIQ.Launcher.VERTICAL_TOP or ZohoSalesIQ.Launcher.VERTICAL_BOTTOM parameters to move the launcher button to the sides of the screen while in floating mode. You can also set the position of the launcher button by mentioning the required pixel values. 

Example snippet for floating:

var launcherProperties = {};
launcherProperties.mode = ZohoSalesIQ.Launcher.FLOATING_MODE; //Initialize with the launcher mode
launcherPropertiesMap.horizontalDirection = ZohoSalesIQ.Launcher.HORIZONTAL_LEFT;
launcherPropertiesMap.verticalDirection = ZohoSalesIQ.Launcher.VERTICAL_BOTTOM;
launcherProperties.y = 0;   //This API applies only in FLoating mode. Launcher's 'y' position.

​Note: x, and y values must be given in pixel units.

Example snippet for static:

var launcherProperties = {};
launcherProperties.mode = ZohoSalesIQ.Launcher.STATIC_MODE; //Initialize with the launcher mode

Step 2: Then, use the following API to set the LauncherProperties.

ZohoSalesIQ.setLauncherPropertiesForAndroid(launcherProperties);