IAdvizeSDK

object IAdvizeSDK

The iAdvize SDK lets you provide a unique conversational experience to your users.

You access the SDK through this IAdvizeSDK instance.

Start by configuring the SDK using initiate, then you can authenticate a visitor through activate.

You can then rely on the provided controllers to configure and monitor the various parts of the conversational experience:

  • The targetingController lets you control the targeting process.

  • The defaultFloatingButtonController lets you configure the chat button.

  • The chatboxController lets you configure the chatbox.

  • The notificationController lets you configure push notifications.

  • The conversationController lets you monitor the ongoing conversation.

  • The transactionController lets you register transactions.

  • The visitorController lets you register custom data related to the visitor.

Types

Link copied to clipboard

Activation state of the SDK.

Link copied to clipboard
interface Callback

Callback used in various SDK public APIs with asynchronous results.

Link copied to clipboard
sealed class Error : Exception

Properties

Link copied to clipboard

Activation state of the SDK.

Link copied to clipboard

Controller in charge of the chatbox configuration & update.

Link copied to clipboard

Controller in charge of the conversation.

Link copied to clipboard

Controller in charge of the chat button configuration.

Link copied to clipboard

Level of the iAdvize Conversation SDK console logger.

Link copied to clipboard

Controller in charge of push notifications.

Link copied to clipboard

Controller in charge of the targeting process.

Link copied to clipboard

Controller in charge of transactions.

Link copied to clipboard

Controller in charge of visitor custom data.

Functions

Link copied to clipboard
fun activate(projectId: Int, authenticationOption: AuthenticationOption, gdprOption: GDPROption = GDPROption.Disabled, callback: IAdvizeSDK.Callback? = null): Job

Activate the iAdvize Conversation SDK for a visitor.

Link copied to clipboard

Returns a JSON String containing detailed information about the state of the iAdvize SDK.

Link copied to clipboard
fun initiate(application: Application, callback: IAdvizeSDK.Callback? = null): Job

Initiate the iAdvize conversation SDK for your app. This will register a callback on activities lifecycle to help through SDK usage in the app. This must be done as soon as possible.

Link copied to clipboard
fun logout(callback: IAdvizeSDK.Callback? = null): Job

Logout the user from the SDK. This hides the chat button, disables push notifications and clears all the locally stored visitor data. You will need to call activate again if the user needs to start a new conversation.