RSDTaskResourceTransformer
public protocol RSDTaskResourceTransformer : RSDTaskTransformer, RSDResourceTransformer
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.
-
fetchTask(with:taskInfo:schemaInfo:callback:)Extension methodFetch the task for this task info. Use the given factory to transform the task.
Declaration
Swift
public func fetchTask(with factory: RSDFactory, taskInfo: RSDTaskInfoStep, schemaInfo: RSDSchemaInfo?, callback: @escaping RSDTaskFetchCompletionHandler)Parameters
factoryThe factory to use for creating the task and steps.
taskInfoThe 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