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?) -> SelfParameters
identifierThe new identifier.
schemaInfoThe schema info.
-
estimatedFetchTimeExtension methodReturns
0.Declaration
Swift
public var estimatedFetchTime: TimeInterval { 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
RSDCopyTask Protocol Reference