PredixMobileServerInformationFetcher
public class PredixMobileServerInformationFetcher
Retrieves PredixMobileServerInformation from a given Predix Mobile server endpoint
-
Fetched
PredixMobileServerInformationDeclaration
Swift
public var fetchedServerInformation: PredixMobileServerInformation? -
Returns a PredixMobileServerInformationFetcher for the given endpoint. Fetchers and their retrieved
PredixMobileServerInformationdata are cached until cleared.Declaration
Swift
static public func fetcher(forEndpoint serverEndpointURL: URL) -> PredixMobileServerInformationFetcher -
Fetches the
PredixMobileServerInformationfrom the given endpoint URL, or returns previously cached information.Since
PredixMobileServerInformationdoes not usually change, this class will cache this information until the cache is cleared.Declaration
Swift
public func fetchServerInformation(completionHandler: ((PredixMobileServerInformation?) -> Void)?)Parameters
completionHandlerCompletion handler called when the
PredixMobileServerInformationhas been retreived -
Clears the cached
PredixMobileServerInformationfor this instanceDeclaration
Swift
public func clearCache()
View on GitHub
PredixMobileServerInformationFetcher Class Reference