Protocols
The following protocols are available globally.
-
A cache key for
See moreHACachesContainerDeclaration
Swift
public protocol HACacheKey -
A type which can be decoded using our data type
See moreNote
This differs fromDecodableintentionally;Decodabledoes not supportAnytypes or JSON well when the results are extremely dynamic. This limitation requires that we do it ourselves.Declaration
Swift
public protocol HADataDecodable : HADecodeTransformable -
Decode a value by massagging into another type
For example, this allows decoding a Date from a String without having to do intermediate casting in calling code.
See moreDeclaration
Swift
public protocol HADecodeTransformable -
Delegate of the connection
See moreDeclaration
Swift
public protocol HAConnectionDelegate : AnyObject -
A token representing an individual request or subscription
You do not need to strongly retain this value. Requests are only cancelled explicitly.
See moreDeclaration
Swift
public protocol HACancellable -
Protocol for providing certificate authentication for HAKit REST API calls
See moreDeclaration
Swift
public protocol HACertificateProvider
View on GitHub
Protocols Reference