Skip to content

BridgedArtifactChunk

ArtifactChunk as it crosses the plugin boundary. A Capacitor native call resolves JSON, which cannot carry a byte array, so iOS and Android send bytes as a base64 string; the web implementation has no hop to cross and sends the engine’s Uint8Array as is. IndeRunCapacitor.readArtifact and createIndeRunCapacitor() decode either form back into ArtifactChunk. Base64 is transport only: results still carry artifact handles, never bytes.

artifactId: string

The artifact the bytes belong to.

ArtifactChunk.artifactId


bytes: string | Uint8Array<ArrayBufferLike>


done: boolean

Whether this range reaches the end of the artifact.

ArtifactChunk.done


offset: number

Byte offset of bytes within the artifact.

ArtifactChunk.offset


totalBytes: number

Size of the whole artifact in bytes.

ArtifactChunk.totalBytes