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

    enabled

    whether the connector should collect events.

    canLog

    predicate that returns true when an event passes any level/category filter.

    isLocationEnabled

    whether location data may be attached to outgoing events.

    lastLocation

    the most recent known location, read lazily at send time.

    placemarks

    reverse-geocoded placemarks for the last location, read lazily at send time.