API
-
Represents a utility singleton class for calling through the Cheetah Loyalty API.
See moreDeclaration
Swift
public class API
-
Used to store all data associated with a response.
See moreDeclaration
Swift
public struct APIResponse<Value>
-
Represents the configuration to be used for the Cheetah Loyalty Framework
This loads configuration values from the
See moreCheetahLoyalty-Info.plist
file from the main bundle. A missing or incompleteCheetahLoyalty-Info.plist
file will cause a precondition failure. The list of property keys is defined inConfiguration.CodingKeys
.Declaration
Swift
public class Configuration : Decodable
-
Declaration
Swift
extension JSONDecoder
-
Used to store list information.
See moreDeclaration
Swift
public struct ListInfo : Codable, Equatable
-
A dictionary of parameters for a
URLRequest
.Declaration
Swift
public typealias Parameters = [String : Any]
-
A closure for response completion handling. The closure takes a
Result
argument with associated typeAPIResponse
(with a generic associated type) andError
.Declaration
Swift
public typealias ResponseCompletion<T> = ((Result<APIResponse<T>, Error>) -> Void)?
-
The error type returned for response errors.
See moreDeclaration
Swift
public enum ResponseError : Error
extension ResponseError: LocalizedError
-
Declaration
Swift
extension Result
extension Result: CustomStringConvertible
extension Result: CustomDebugStringConvertible
-
Represents a type which holds user location coordinates. This protocol can only be adopted by class types and can be a weak reference.
See moreDeclaration
Swift
public protocol UserLocation : AnyObject