OnlineDataService
open class OnlineDataService : DataService
A specialization of DataService where the provider is an OnlineODataProvider.
-
Construct an online data service using an online provider.
Declaration
Swift
public init(provider: OnlineODataProvider)Parameters
providerOnline provider.
-
If this data service requires a security token, then acquire it now.
See also
ServiceOptions.requiresToken.Declaration
Swift
open func acquireToken() throws -
(Asynchronous) If this data service requires a security token, then acquire it now.
See also
ServiceOptions.requiresToken.Declaration
Swift
open func acquireToken(completionHandler: @escaping (Result<Void, Error>) -> Void) -
The online provider supporting this data service.
Declaration
Swift
open var onlineProvider: OnlineODataProvider { get } -
Service options for the associated online provider.
Declaration
Swift
open var serviceOptions: ServiceOptions { get }