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.

  • Fetch 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

    factory

    The factory to use for creating the task and steps.

    taskInfo

    The task info for the task (if applicable).

    schemaInfo

    The schema info for the task (if applicable).

    callback

    The callback with the task or an error if the task failed, run on the main thread.