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