AdswizzAnalyticsConfigurable
public protocol AdswizzAnalyticsConfigurable : AnyObject
This protocol is used by the SDK to detect / keep track of Adswizz-owned connectors.
-
Apply ZC-derived analytics configuration on the main actor. Invoked when the connector is registered and again after each ZC config load.
Declaration
Swift
@MainActor func applyAnalyticsConfiguration( enabled: Bool, canLog: @escaping @Sendable (AnalyticsEvent) -> Bool, isLocationEnabled: @escaping @MainActor @Sendable () -> Bool, lastLocation: @escaping @MainActor @Sendable () -> CLLocation?, placemarks: @escaping @MainActor @Sendable () -> [CLPlacemark]? )Parameters
enabledwhether the connector should collect events.
canLogpredicate that returns
truewhen an event passes any level/category filter.isLocationEnabledwhether location data may be attached to outgoing events.
lastLocationthe most recent known location, read lazily at send time.
placemarksreverse-geocoded placemarks for the last location, read lazily at send time.