RSDFileResult

public protocol RSDFileResult : RSDArchivable, RSDResult

RSDFileResult is a result that holds a pointer to a file url.

  • url

    The URL with the full path to the file-based result. This should not be encoded in the file result if the results are encoded and uploaded to a server. This is included for use in local file system management only.

    Note

    It is the responsibility of the developer to ensure that the participant’s private data is managed securely.

    Declaration

    Swift

    var url: URL? { get set }
  • The relative path to the file-based result. This should be the relative path to the file within the outputDirectory of the associated RSDTaskViewModel.

    Declaration

    Swift

    var relativePath: String? { get }
  • The MIME content type of the result.

    • example: "application/json"

    Declaration

    Swift

    var contentType: String? { get }
  • The system clock uptime when the recorder was started (if applicable).

    Declaration

    Swift

    var startUptime: TimeInterval? { get }
  • buildArchiveData(at:) Extension method

    Build the archiveable or uploadable data for this result.

    Declaration

    Swift

    public func buildArchiveData(at stepPath: String?) throws -> (manifest: RSDFileManifest, data: Data)?