PSPDFAnalyticsClient
Objective-C
@protocol PSPDFAnalyticsClient
Swift
protocol PDFAnalyticsClient
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.
Declaration
Objective-C
- (void)logEvent:(nonnull PSPDFAnalyticsEventName)event attributes:(nullable NSDictionary<NSString *, id> *)attributes;
Swift
func logEvent(_ event: PDFAnalytics.EventName, attributes: [String : Any]? = nil)
Parameters
event
event name
attributes
event attributes