Blue Conic Client Impl
Implementation of the BlueConic client, handling the profile retrieval and storage. This may be from cache, persistent storage on the client or direct requests to the BlueConic server.
Types
Interface for callbacks.
Enum for event types.
Properties
Returns the current activity.
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.
Returns true when the BlueConicClient is enabled. You are able to enable/ disable the BlueConicClient.
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.
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.
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.
Returns all segments for the profile. The segments are retrieved by each PAGEVIEW event.
Functions
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.
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.
Add property values to the profile. The values are passed as a map from the property identifier to the list of property values. 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.
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.
Clear profile id, based on hostname and domain group.
Registers an event of the specified type with the given properties.
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.
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.
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.
Triggers a call to onDestroy on every plugin that was retrieved at the last PAGEVIEW.
Returns the first value for a profile property.
Returns the values for a profile property.
Returns a view component based on the given identifier or null if no match is found.
Returns whether a profile has a segment or not.
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.
Refreshes profile properties from the server. When the retrieval failed, the onError() method is invoked on the callback object. When successful the onSuccess() method is invoked. Before loading the values from the server the client sends his changed values to the server.
Loads the profile property labels.
Callback when the connectivity status is changed.
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.
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.
Sets the locale to get parameters for. By default, the default locale configured in BlueConic is used.
Sets the platform information. Only use this method when you want to use it in combination with a BlueConic plugin (ex.: React Native).
Sets a value on the profile. Passing a property that was already set with values will cause for the old values to be removed.
Sets values on the profile. Passing a property that was already set with values will cause for the old values to be removed.
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.
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.