ShareRequest Class

The validated data of a navigator.share() call, given to BrowsingContextOptions.Share. A null member was not given by the script.

public sealed class ShareRequest

Properties

NameDescription
FilesGets the files to share (empty when there is none).
TextGets the text to share, or null.
TitleGets the title of the shared content, or null.
UrlGets the absolute URL to share (resolved against the base URL of the document and serialized), or null.

Gets the files to share (empty when there is none).

public IReadOnlyList<File> Files { get; }

Property value

IReadOnlyList<File>

Gets the text to share, or null.

public string? Text { get; }

Property value

string?

Gets the title of the shared content, or null.

public string? Title { get; }

Property value

string?

Gets the absolute URL to share (resolved against the base URL of the document and serialized), or null.

public string? Url { get; }

Property value

string?