ShareContent

What to hand the share sheet: an optional text, link and image.
public sealed class ShareContent

Properties

Image

The image to share, shown as the sheet's preview thumbnail.

Type: ImageSource?

public ImageSource? Image { get; set; }

Text

The text to share, which also titles the share sheet.

Type: string?

public string? Text { get; set; }

Url

The link to share, so the sheet offers its link-specific actions.

Type: Uri?

public Uri? Url { get; set; }

Operators

Implicit ShareContent(ImageSource)

Shares an image.

public static implicit operator ShareContent(
  ImageSource image)
ParameterSummary
ImageSource imageThe image to share.

Returns

Implicit ShareContent(string)

Shares a string as plain text.

public static implicit operator ShareContent(
  string text)
ParameterSummary
string textThe text to share.

Returns

Implicit ShareContent(Uri)

Shares a web address as a link.

public static implicit operator ShareContent(
  Uri url)
ParameterSummary
Uri urlThe address to share.

Returns