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.plistfile from the main bundle. A missing or incompleteCheetahLoyalty-Info.plistfile 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
Resultargument 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 : Errorextension ResponseError: LocalizedError -
Declaration
Swift
extension Resultextension Result: CustomStringConvertibleextension 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
View on GitHub
API Reference