public interface

AnalyticsClient

com.pspdfkit.analytics.AnalyticsClient

Class Overview

Interface of a client that can receive analytics data. Register implementations of this interface via addAnalyticsClient(AnalyticsClient).

Summary

Public Methods
abstract void onEvent(String name, Bundle data)
Callback for analytics events.

Public Methods

public abstract void onEvent (String name, Bundle data)

Callback for analytics events. This method is called by PSPDFKit as soon as an analytics event was triggered. This method will be called on a background thread, dedicated to the analytics client.

Parameters
name Name of the event. See Analytics.Event for a complete list of available events.
data Bundle with event data. The actual data depends on the event. See Analytics.Data for a list of possible keys.