FritzCore

@objc(FritzCore)
public class FritzCore : NSObject
  • Shared configuration

    Declaration

    Swift

    @objc(configuration)
    public static var configuration: Configuration { get }
  • Configure the Fritz SDK

    Declaration

    Swift

    @objc(configure)
    public static func configure()
  • Configure the Fritz SDK with a custom configuration

    Declaration

    Swift

    @objc(configureWith:)
    public static func configure(with configuration: Configuration)
  • Enables Fritz SDK logging

    Declaration

    Swift

    @objc(setLogLevel:)
    public static func setLogLevel(_ level: LogLevel)

    Parameters

    level

    – 0: Debug logging – 1: Info logging – 2: Warn logging – 3: Error logging – 4: Disable logging

  • Instance identifier, persisted to defaults

    Declaration

    Swift

    public static let instanceIdentifier: String
  • Session identifier, persisted to defaults

    Declaration

    Swift

    public static var sessionIdentifier: String { get }
  • Extends the lifetime of session identifier

    Declaration

    Swift

    public static func extendSessionIdentifier()
  • Resets the session identifier if last access was more than the default expiration interval Returns the current session identifier

    Declaration

    Swift

    @discardableResult
    public static func resetSessionIdentifierIfNeeded() -> String