RunicBlob interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface RunicBlob

Binary content that a ViewModel exposes: a .NET RunicBlob. Use url directly, as <img src>, <a href download> or with fetch; the host serves it with its type and file name. The URL works on this window only, and stops working when the ViewModel replaces the blob, when its View is released or when the window closes.

Properties

url

readonly url: string;

The URL the host serves the content at; empty when the host serves no blobs.

type

readonly type: string;

The media type, such as image/png.

size

readonly size: number | null;

The length in bytes, or null when .NET knows it only when it serves the content.

name

readonly name: string | null;

The file name a download saves the content as, or null.