MetadataProvider

public final class MetadataProvider

MetadataProvider stores during app lifecycle additional metadata for HTTP requests to TomTom Network APIs and implements adding this additional metadata to HTTP request’s headers

Important

This is a Public Preview API. It may be changed or removed at any time.
  • A singleton instance of MetadataProvider

    Declaration

    Swift

    public static let shared: MetadataProvider
  • endUserID metadata value. Unique identifier, will be set by intergrator to bill the customer based on a query over this information, like the number of observed unique IDs in a billing period.

    Declaration

    Swift

    public var endUserID: String? { get set }
  • Getter for custom metadata entry

    Declaration

    Swift

    public func getProperty(withKey key: String) throws -> Codable?
  • Setter for custom metadata entity

    Declaration

    Swift

    public func setProperty(withKey key: String, value: Codable?) throws