The type of the destination for copyTo.
The type of the source for getSource``. @template C The type of the coordinates the snapshot is bound to. @template J The type of the JSON for toJSON. @template R What copyTo` resolves with; the coordinates unless the source has more to report.
Copies the snapshot to the specified range.
The destination Snapshot source where the snapshot will be copied.
Optionaloptions: CopyToOptions
The result of the copy.
The copy is made inside the destination's transaction, so it completes synchronously; anything that has to wait belongs in prepare.
OptionalgetRetrieves the coordinates that bound the current snapshot.
OptionalgetA user friendly name of a the snapshot item.
The source that created the snapshot. This is used to quickly do comparisons.
OptionalprepareDoes the asynchronous work a copy needs, before copyTo is called.
The destination the snapshot will be copied to.
Optionaloptions: CopyToOptions
A copy is made inside the destination's transaction, which must not be held open across an
await. Anything that has to wait - loading a kind of content, decoding an image - is done
here, with the destination the copy will be made to, so that copyTo can complete
synchronously. A snapshot with nothing to wait for leaves this out, or returns void.
OptionaltoConverts the snapshot to an HTML representation.
A string or promise resolving to the HTML representation of the snapshot.
OptionaltoConverts the snapshot to an image blob.
A Blob or promise resolving to the image representation of the snapshot.
OptionaltoOptionaltoConverts the snapshot to a plain text representation.
A string or promise resolving to the text representation of the snapshot.
Represents an immutable reference to an
Record, capturing its content and metadata.