BlueConicClient

interface BlueConicClient

Interface for the BlueConic client.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface Connection

Interface for the connections.

Link copied to clipboard

Interface for the interaction context.

Link copied to clipboard
interface Plugin

Interface for plugins.

Link copied to clipboard
interface Segment

Interface for segments.

Properties

Link copied to clipboard
abstract val activity: Activity

Returns the current activity.

Link copied to clipboard

The consented objectives IDs of this profile in a list, e.g. {"tracking", "advertising"}. Passing a property that was already set with values will cause the old values to be removed.

Link copied to clipboard
abstract var isEnabled: Boolean

Returns true when the BlueConicClient is enabled. You are able to enable/ disable the BlueConicClient.

Link copied to clipboard
abstract var privacyLegislation: String?

The privacy legislation for this profile, e.g. "GDPR". Passing a property that was already set with values will cause the old values to be removed.

Link copied to clipboard
abstract val profileId: String?

Returns the ID of the profile.

Link copied to clipboard

The refused objectives IDs of this profile in a list, e.g. {"tracking", "advertising"}. Passing a property that was already set with values will cause the old values to be removed.

Link copied to clipboard
abstract var screenName: String

Returns the screen name. When the screen name is set with a call to createEvent in the Activity's onResume method it will return that screen name. Otherwise it will return the Activity's title. This method is typically used in Plugins.

Link copied to clipboard

Returns all segments for the profile. The segments are retrieved by each PAGEVIEW event.

Functions

Link copied to clipboard
abstract fun addConsentedObjective(objectiveId: String)

Adds a single objective ID to the consented objectives for this profile. If there are already values for a property the new value will be added. Values for a property need to be unique; passing the same value multiple times will have no effect.

Link copied to clipboard
abstract fun addProfileValue(property: String, value: String)

Adds a single property value to the profile. If there are already values for a property the new value will be added. Values for a property need to be unique; passing the same value multiple times will have no effect.

Link copied to clipboard
abstract fun addProfileValues(property: String, values: Collection<String>)

Adds property values to the profile. The values from the collection are added to the profile. If there are already values for a property the new values will be added. Values for a property need to be unique; passing the same values multiple times will have no effect.

Link copied to clipboard
abstract fun addRefusedObjective(objectiveId: String)

Adds a single objective ID to the refused objectives for this profile. If there are already values for a property the new value will be added. Values for a property need to be unique; passing the same value multiple times will have no effect.

Link copied to clipboard
abstract fun createEvent(eventType: String, properties: Map<String, String?>)
abstract fun createEvent(eventType: String, properties: Map<String, String?>, context: Activity)
abstract fun createEvent(eventType: String, properties: Map<String, String?>, context: Activity, callback: Runnable?)

Registers an event of the specified type with the given properties.

abstract fun createEvent(eventType: String, properties: Map<String, String?>, callback: Runnable?)

Registers an event of the specified type with the given properties. For a "PAGEVIEW" event a screenName can be passed, so interactions can be restricted on the Where tab in BlueConic.

Link copied to clipboard
abstract fun createEventWithData(eventType: String, properties: Map<String, Any?>)
abstract fun createEventWithData(eventType: String, properties: Map<String, Any?>, callback: Runnable?)

Registers an event of the specified type with the given data. The data object can contain a nested structure to be sent over custom events and/or with Timeline context in order to register timeline events.

abstract fun createEventWithData(eventType: String, properties: Map<String, Any?>, context: Activity)
abstract fun createEventWithData(eventType: String, properties: Map<String, Any?>, context: Activity, callback: Runnable?)

Registers an event of the specified type with the given data. The data object can contain a nested structure to sent over custom events and/or with Timeline context in order to register timeline events.

Link copied to clipboard
abstract fun createTimelineEvent(eventType: String, eventDate: Date, properties: Map<String, Any?>, callback: Runnable? = null)

Registers an event on the timeline of the profile with the given properties.

Link copied to clipboard
abstract fun createTimelineEventById(eventId: String, eventType: String, eventDate: Date, properties: Map<String, Any?>, callback: Runnable? = null)

Registers an event on the timeline of the profile with the given properties.

Link copied to clipboard
abstract fun destroyPlugins()

Triggers a call to onDestroy on every plugin that was retrieved at the last PAGEVIEW.

Link copied to clipboard
abstract fun getProfileValue(property: String?): String?

Returns the first value for a given profile property.

Link copied to clipboard
abstract fun getProfileValues(property: String?): Collection<String>

Returns the values for a given profile property. For example, it can return all the values in a list of hobbies, e.g. {"tennis", "soccer"}.

Link copied to clipboard
abstract fun getView(expression: String?): View?

Returns a view component based on the given identifier or null if no match is found.

Link copied to clipboard
abstract fun hasSegment(segmentId: String?): Boolean

Returns whether a profile has a segment or not.

Link copied to clipboard
abstract fun incrementProfileValue(property: String, value: String?)

Increments a single property value to the profile. If there are already values for a property the new value will be the sum of all values.

Link copied to clipboard
abstract fun registerPluginClass(pluginClass: Class<out BlueConicClient.Plugin>)

Register a plugin class. This is optional. Can be used to mark and define which Plugin classes to use for BlueConic when a page view is registered.

abstract fun registerPluginClass(pluginClass: Class<out BlueConicClient.Plugin>, className: String)

Register a plugin class with a specific name. This is optional. Can be used to mark and define which Plugin classes to use for BlueConic when a page view is registered.

Link copied to clipboard
abstract fun setLocale(locale: String)

Sets the locale to get parameters for. By default, the default locale configured in BlueConic is used.

Link copied to clipboard
abstract fun setProfileValue(property: String, value: String?)

Sets a value on the profile. Passing a property that was already set with values will cause for the old values to be removed.

Link copied to clipboard
abstract fun setProfileValues(property: String, values: Collection<String>)

Sets values on the profile. Passing a property that was already set with values will cause for the old values to be removed.

Link copied to clipboard
abstract fun updateProfile()

Updates the profile to sync over the data from the Mobile app to the BlueConic servers and also pulls in the data that has changed on the BlueConic side.

abstract fun updateProfile(callback: Runnable?)

Update the profile to sync over the data from the Mobile app to the BlueConic servers and; also pull in the data that has changed on the BlueConic side.