SalesforceAnalyticsManager

This class contains APIs that can be used to interact with the SalesforceAnalytics library.

Author

bhariharan

Types

Link copied to clipboard
The available Salesforce analytics publishing types.

Properties

Functions

Link copied to clipboard
open fun addRemotePublisher(transformer: Class<out Transform>, publisher: Class<out AnalyticsPublisher>)
Adds a remote publisher to publish events to.
Link copied to clipboard
The enabled Salesforce analytics publishing type.
Link copied to clipboard
open fun enableLogging(enabled: Boolean)
Disables or enables logging of events.
Link copied to clipboard
Returns the device app attributes associated with this device.
Link copied to clipboard
Returns the instance of this class associated with this user account.
open fun getInstance(account: UserAccount, communityId: String): SalesforceAnalyticsManager
Returns the instance of this class associated with this user and community.
Link copied to clipboard
Returns the instance of this class associated with an unauthenticated user context.
Link copied to clipboard
Returns whether logging is enabled or disabled.
Link copied to clipboard
open fun publishAllEvents()
Publishes all stored events to all registered network endpoints after applying the required event format transforms.
Link copied to clipboard
Publishes an event to all registered network endpoints after applying the required event format transforms.
Link copied to clipboard
Publishes a list of events to all registered network endpoints after applying the required event format transforms.
Link copied to clipboard
open fun reset(account: UserAccount)
Resets the instance of this class associated with this user account.
open fun reset(account: UserAccount, communityId: String)
Resets the instance of this class associated with this user and community.
Link copied to clipboard
Resets the instance of this class associated with an unauthenticated user context.
Link copied to clipboard
Sets the enabled Salesforce analytics publishing type.
Link copied to clipboard
open fun setEventPublishBatchSize(batchSize: Int)
Set the batch size for publishing instrumentation events.
Link copied to clipboard
Updates the preferences of this library.