ZohoSalesIQ Class
Note: These classes are supported from version 8.1.0-beta01.
SalesIQConfiguration
The SalesIQConfiguration class configures the SalesIQ SDK, providing options for authentication, custom fonts, and call status view customizations. The configuration is created using a Builder pattern to ensure flexibility.
SalesIQConfiguration.Builder
The Builder class facilitates the construction of a SalesIQConfiguration object with various configuration options.
Constructor:
Copied
SalesIQConfiguration.Builder(appKey: String, accessKey: String)
Builder Methods
Parameters:
- appKey (String): The app key for initializing the SDK (mandatory).
- accessKey (String): The access key for initializing the SDK (mandatory).
setUserId
Assign a unique user ID for authenticating the user. If setAuth is called, it will override the user ID.
Copied
SalesIQConfiguration.Builder setUserId(String userId)
- Parameter:
- userId (String): The unique identifier for the user.
setAuth
Sets authentication data for the user. This method will override the user ID set using setUserId.
Copied
SalesIQConfiguration.Builder setAuth(SalesIQAuth salesIQAuth)
- Parameter:
- salesIQAuth (SalesIQAuth): The authentication object containing the user's credentials.
setFont
Configures custom fonts for the SDK by specifying the font's weight and file path.
Copied
SalesIQConfiguration.Builder setFont(int weight, String fontPath)
- Parameters:
- weight (Int): The font-weight (e.g., Fonts.REGULAR for regular, Fonts. MEDIUM for bold).
- fontPath (String): The file path to the custom font.
setCallViewMode
Configures the type of call status view for the call UI, such as BANNER or FLOATING.
Copied
SalesIQConfiguration.Builder setSalesIQCallViewMode(SalesIQCallViewMode callViewMode)
- Parameter:
- callViewMode (SalesIQCallViewMode): The type of call status view.
build():
Constructs a SalesIQConfiguration object with the provided attributes.
- Returns:
- SalesIQConfiguration: The configured object.