GameService
-
A data class to hold endpoint data.
See moreDeclaration
Swift
@objc public class Endpoint: NSObject, Gloss.Decodable
-
See more
See
IGameServiceDeclaration
Swift
@objc public class GameService: NSObject, IGameService
-
Keys used for GameService analytic events.
See moreDeclaration
Swift
@objc public class GameServiceAnalyticKeys: NSObject -
GameService endpoints.
See moreDeclaration
Swift
@objc public class GameServiceEndpointKeys: NSObject -
GameService endpoint urls.
See moreDeclaration
Swift
@objc public class GameServiceEndpointUrls: NSObject -
Keys used in the HTTP headers for GameService requests.
See moreDeclaration
Swift
@objc public class GameServiceHeaderKeys: NSObject -
Keys used to retrieve values from the GameService manifest node.
See moreDeclaration
Swift
@objc public class GameServiceManifestKeys: NSObject -
Keys used by GameService to save information in UserDefaults.
See moreDeclaration
Swift
@objc public class GameServicePlayerPrefKeys: NSObject -
Keys used in the request body for GameServiceRequests.
See moreDeclaration
Swift
@objc public class GameServiceRequestKeys: NSObject -
Keys for the json response for GameServiceRequests.
See moreDeclaration
Swift
@objc public class GameServiceResponseKeys: NSObject
-
A data class holding the parameters required to connect to the v5 game service.
See moreDeclaration
Swift
@objc public class GameServiceConfiguration: NSObject, Glossy
-
Declaration
Swift
@objc public class GameServiceConfigurationService: NSObject, Gloss.Decodable, IGameServiceConfigurationService
-
A class representing a GameService error, subclasses
See moreDarkMatterError.Declaration
Swift
@objc public class GameServiceError: DarkMatterError -
Error codes for GameServiceError.
See moreDeclaration
Swift
@objc public enum GameServiceErrorCode: Int
-
Undocumented
See moreDeclaration
Swift
@objc public enum GameServiceLoginStatus: Int
-
The GameService library is meant to manage communication with the Magmic remote v5 Game Service. It manages server configurations, user authentication, Facebook login/logout and manifests. The service uses a GameServiceConfiguration to define how it should communicate with the v5 server. A default configuration is required to be passed in when initializing, other configurations should be defined in the gameService node of the manifest.
When initializing the service it will used the default GameServiceConfiguration passed in until it has successfully connected and received an updated manifest.Once the serviced has a manifest all subsequent calls will be made using the active configuration set in the manifest. If the configuration in the manifest has changed the service will reinitialize it’s connection to the game service using the new configuration set in the manifest.As a safety precaution if this new manifest changes the configuration again initialization will fail to prevent a configuration loop.
See moreDeclaration
Swift
public protocol IGameService
-
An interface defining a service for managing
GameServiceConfigurationobjects.This object will get populated directly from a valid gameService.configurations node in a manifest.
See moreDeclaration
Swift
@objc public protocol IGameServiceConfigurationService: NSObjectProtocol
-
Undocumented
See moreDeclaration
Swift
@objc public protocol IUsertypes: NSObjectProtocol
-
Undocumented
See moreDeclaration
Swift
@objc public enum UsertypeMethod: Int, RawRepresentable -
Undocumented
See moreDeclaration
Swift
@objc public class Usertypes: NSObject, IUsertypes
GameService Reference