Recording

class Recording(val bytes: ByteArray, val extension: String) : Artifact(source)

A bounded device recording (Device.stopRecording): MP4, Matroska, or Opus.

Constructors

Link copied to clipboard
constructor(bytes: ByteArray, extension: String)

Properties

Link copied to clipboard
open override val bytes: ByteArray

The serialized form: PNG, UTF-8 XML, UTF-8 JSON or UTF-8 text.

Link copied to clipboard
open override val extension: String

The usual file extension for bytes, without the dot, e.g. png.

Link copied to clipboard
open override val mediaType: String

The IANA media type of bytes, e.g. image/png.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open fun save(path: Path): Path

Writes bytes to path (parent directories are created) and returns path.

Link copied to clipboard
open override fun toString(): String