ATInternet

public class ATInternet : NSObject

Use this class to manage tracker instances

  • Get a Tracker with “defaultTracker” name

    Declaration

    Swift

    @objc
    public var defaultTracker: Tracker { get }
  • Singleton

    Declaration

    Swift

    @objc
    public class var sharedInstance: ATInternet { get }
  • Get a tracker with default configuration

    Declaration

    Swift

    @objc
    public func tracker(_ name: String) -> Tracker

    Parameters

    name

    the tracker identifier

    Return Value

    a new tracker or an existing instance

  • Undocumented

    Declaration

    Swift

    @objc
    public var userAgent: String { get set }
  • Get user agent async

    Declaration

    Swift

    @objc
    public func getUserAgentAsync(completionHandler: @escaping ((String) -> Void))
  • Undocumented

    Declaration

    Swift

    @objc
    public var applicationVersion: String { get set }
  • Undocumented

    Declaration

    Swift

    @objc
    public class var databaseDirectory: URL { get set }
  • Undocumented

    Declaration

    Swift

    @objc
    public class var encryptionMode: String { get set }
  • Disable user identification.

    Declaration

    Swift

    @available(*, deprecated)
    @objc
    public class var optOut: Bool { get set }
  • Prevent offline hits to be sync with icloud

    Declaration

    Swift

    @objc
    public static var preventICloudSync: Bool
  • Get a tracker with custom configuration

    Declaration

    Swift

    @objc
    public func tracker(_ name: String, configuration: [String : String]) -> Tracker

    Parameters

    name

    the tracker identifier

    configuration

    a custom configuration. See TrackerConfigurationKeys

    Return Value

    a new tracker or an existing instance