RSDTaskResourceTransformer
public protocol RSDTaskResourceTransformer : RSDResourceTransformer, RSDTaskTransformer
RSDTaskResourceTransformer is an implementation of a RSDTaskTransformer that uses a RSDResourceTransformer
to support transforming a resource either using an online URL or an embedded file.
-
The factory to use in decoding the task from an embedded resource.
Declaration
Swift
var factory: RSDFactory { get }
-
fetchTask(with:schemaInfo:callback:)Extension methodFetch the task for this task info. Use the given factory to transform the task.
Declaration
Swift
public func fetchTask(with taskIdentifier: String, schemaInfo: RSDSchemaInfo?, callback: @escaping RSDTaskFetchCompletionHandler)Parameters
taskIdentifierThe task info for the task (if applicable).
schemaInfoThe schema info for the task (if applicable).
callbackThe callback with the task or an error if the task failed, run on the main thread.
View on GitHub
RSDTaskResourceTransformer Protocol Reference