ShareData Class

The data to share with navigator.share() (https://w3c.github.io/web-share/#sharedata-dictionary). A null member is not present.

public sealed class ShareData

Constructors

NameDescription
ShareData()

ShareData()

public ShareData()

No documentation is available.

Properties

NameDescription
FilesGets the files to share.
TextGets the text to share.
TitleGets the title of the shared content.
UrlGets the URL to share, relative to the base URL of the document.

Gets the files to share.

public IReadOnlyList<File>? Files { get; init; }

Gets the text to share.

public string? Text { get; init; }

Gets the title of the shared content.

public string? Title { get; init; }

Gets the URL to share, relative to the base URL of the document.

public string? Url { get; init; }