TargetingController

Controller in charge of targeting rules.

Properties

Link copied to clipboard
abstract var language: LanguageOption

Language to use for the conversation targeting.

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)

Start the targeting workflow with the given rule. This will start a periodic check every 30 seconds to verify the availability of a respondent for the given rule and targeting language. The result of this check is notified through the TargetingListener.

Link copied to clipboard

Return the active targeting rule, if any.

Link copied to clipboard

Stop the targeting workflow. The chat button is immediately hidden (unless a conversation is ongoing).

Link copied to clipboard

Flag for checking the availability of the active targeting rule.

Link copied to clipboard
abstract fun registerUserNavigation(navigationOption: NavigationOption = NavigationOption.ClearActiveRule)

Register a user navigation through the app.