PSPDFAnalyticsClient

@protocol PSPDFAnalyticsClient

Protocol for analytics events consumers. Implement this protocol to forward analytics events to an analytics service of your choice. To receive events you must register your PSPDFAnalyticsClient instance with -[PSPDFAnalytics addAnalyticsClient:] method.

  • This method is called when an analytics event occurs. - parameter: event event name - parameter: attributes event attributes

    Declaration

    Objective-C

    - (void)logEvent:(nonnull PSPDFAnalyticsEventName)event
          attributes:(nullable NSDictionary<NSString *, id> *)attributes;

    Swift

    func logEvent(_ event: PSPDFAnalyticsEventName, attributes: [String : Any]? = nil)

    Parameters

    event

    event name

    attributes

    event attributes