TargetingController

An object that controls the targeting process, i.e. the workflow leading to the display / hiding of the chat button.

Properties

Link copied to clipboard
abstract var language: LanguageOption

The option used to configure the language of the conversation. The language influences the targeting process as only respondents speaking the language of the conversation can take care of it.

Link copied to clipboard

List of listeners to be informed when targeting process is updated.

Functions

Link copied to clipboard
abstract fun activateTargetingRule(targetingRule: TargetingRule)

Activate the specified targeting rule. When you activate a targeting rule, it allows the iAdvize SDK to target the visitor. If one of the respondents associated with the targeting rule is available, the chat button will be displayed so the visitor can start a conversation.

Link copied to clipboard

Return the active targeting rule, if any.

Link copied to clipboard

Deactivate the current targeting rule. Call this method to stop the targeting.The chat button is immediately hidden (unless a conversation is ongoing).

Link copied to clipboard

Returns trueif the active targeting rule is currently available.