AnalyticsCollecting
@objc(AASDKAnalyticsCollecting)
public protocol AnalyticsCollecting
The AnalyticsCollecting
protocol defines an interface for collecting AdswizzSDK
analytics data. All events will be received on a serial background queue.
Note that the AnalyticsConnector
class conforms to AnalyticsCollecting
.
-
Log an event matched to a category and level.
Declaration
Swift
func log(_ event: AnalyticsEvent, _ timestamp: Date)
Parameters
event
event to log
-
Force a send to all connectors. When you receive this call, the connector should try to flush all its stored events if
forced
is true.Declaration
Swift
func send(forced: Bool)
Parameters
forced
true if the action is required immediately