RSDCopyTask

public protocol RSDCopyTask : RSDCopyWithIdentifier, RSDTask, RSDTaskTransformer

Protocol to describe a task that should be copied for each run of the task rather than simply passed. This is used to allow an architecture where the task model uses a pointer to an in-memory object that is used during navigation.

  • Copy the step to a new instance with the given identifier, but otherwise, equal.

    Declaration

    Swift

    func copy(with identifier: String, schemaInfo: RSDSchemaInfo?) -> Self

    Parameters

    identifier

    The new identifier.

    schemaInfo

    The schema info.

  • estimatedFetchTime Extension method

    Returns 0.

    Declaration

    Swift

    public var estimatedFetchTime: TimeInterval { 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.