RSDTaskRepository
open class RSDTaskRepository : NSObject
The task repository is used by an app to configure fetching tasks.
-
Singleton for the shared task repository.
Declaration
Swift
public static var shared: RSDTaskRepository
-
The completion handler for a fetched task.
Declaration
Swift
public typealias FetchCompletionHandler = (RSDTaskInfo, RSDTask?, Error?) -> Void
-
Fetch the task for a given task info. The base class implementation will fetch the task from the
resourceTransformer
that is optionally included on the task info or from an embedded resource.Declaration
Swift
open func fetchTask(for taskInfo: RSDTaskInfo, completion: @escaping FetchCompletionHandler)
-
Returns the schema to use for the given task info.
Declaration
Swift
open func schemaInfo(for taskInfo: RSDTaskInfo) -> RSDSchemaInfo?
-
Returns the task transformer for the given task info.
Declaration
Swift
open func taskTransformer(for taskInfo: RSDTaskInfo) throws -> RSDTaskTransformer