Protocols
The following protocols are available globally.
-
A protocol to which the main
See moreInternetArchiveclass conformsDeclaration
Swift
public protocol InternetArchiveProtocol -
A protocol to which the main
See moreInternetArchive.URLGeneratorclass conformsDeclaration
Swift
public protocol InternetArchiveURLGeneratorProtocol -
A protocol for abstracting URL search query strings
All of the search queries components like Query and DateQuery conform to this
See moreDeclaration
Swift
public protocol InternetArchiveURLStringProtocol -
A protocol for abstracting URL query items for a search
See moreDeclaration
Swift
public protocol InternetArchiveURLQueryItemProtocol -
Declaration
Swift
public protocol InternetArchiveQueryClauseProtocol : InternetArchiveURLStringProtocol
-
A protocol to abstract Internet Archive properties to native Swift types
This protocol allows converting different field types to more specific, native Swift types. For example, the Internet Archive metadata
lengthfield can be represented as aTimeIntervalso anIATimeIntervalknows how to convert323.4
(seconds) or5:23
(hh:mm:ss) to aTimeIntervalA
ModelFieldProtocolclass is instantiated with aStringand its value accessed through thevalueproperty.Example Usage
See morelet intField: IAInt = IAInt(string: "3") intField.value => 3Declaration
Swift
public protocol ModelFieldProtocol : Decodable
View on GitHub
Protocols Reference