public class

ServiceAnalytics

extends Object
java.lang.Object
   ↳ com.salesforce.android.service.common.analytics.ServiceAnalytics

Class Overview

Service Analytics lets you monitor the behavior of the Service SDK by providing contextual data about what the end user is doing and how the Service SDK responds as it happens.

Summary

Public Methods
static void addListener(ServiceAnalyticsListener listener)
Add a ServiceAnalyticsListener, which will be notified when an analytics event has occurred.
static void removeListener(ServiceAnalyticsListener listener)
Remove a known ServiceAnalyticsListener from ServiceAnalytics.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void addListener (ServiceAnalyticsListener listener)

Add a ServiceAnalyticsListener, which will be notified when an analytics event has occurred.

Parameters
listener A ServiceAnalyticsListener object

public static void removeListener (ServiceAnalyticsListener listener)

Remove a known ServiceAnalyticsListener from ServiceAnalytics. Its onServiceAnalyticsEvent(String, Map) method will no longer be notified of analytics events.

Parameters
listener A ServiceAnalyticsListener object that had been previously added