SceneFile

class SceneFile(snapshot: ScreenObjectSnapshot, val resources: Map<String, ByteArray> = emptyMap())

Portable scene file containing scene.json, manifest.json, and media/<filename>.

The snapshot uses camelCase property names. Resource paths are relative to this ZIP; callers materialize resources into their own app storage before supplying media URLs to screen objects. Unsupported objects are invisible and retain their original snapshot when recaptured.

Constructors

Link copied to clipboard
constructor(snapshot: ScreenObjectSnapshot, resources: Map<String, ByteArray> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Writes a portable scene file with ZIP DEFLATE entries.