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

    taskIdentifier

    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.