Open(ReadOnlySpan, DisplayIntent) Method

Definition

Assembly Broadside.Viewer.Blazor.dll

Sends a document to the worker and returns the renderer a session opened from the same bytes uses for its content tiles, or null when the worker is not running.

public static IRemoteTileRenderer? Open(ReadOnlySpan<byte> document, DisplayIntent intent)

Parameters

document
ReadOnlySpan<Byte>

The document's bytes, as the page's session opens them.

intent
DisplayIntent

The display intent the session renders with.

Returns

IRemoteTileRenderer
The renderer (the session owns and disposes it), or null.