Table of Contents

Struct AdditionalShareData

Namespace
Uralstech.UShare

Additional data for a share event.

[Obsolete("Use ShareSheetManagerV2 with ShareOptions instead.")]
public struct AdditionalShareData

Fields

AdditionalText

Additional text to be shared along with the main content.

public string? AdditionalText

Field Value

string

Remarks

You can usually get away with having text in shared content along with other data without having to declare it in the MIME type you provide for the request. For example, most apps will accept "image/png" share requests with additional text, but WhatsApp will send each image as individual messages with the text attached to every message.

AndroidFileProviderAuthority

Overrides the Android FileProvider authority for the file(s) being shared.

public string? AndroidFileProviderAuthority

Field Value

string

BasePath

Overrides the path to the directory containing the file(s) to share.

public string? BasePath

Field Value

string

KeepDataAfterFocusRegain

[Obsolete("Data retention after share events is now mandatory. Deleting data when the source app regains focus can cause target applications to lose access to the shared content, particularly in windowed environments where focus returns immediately.", true)]
public bool KeepDataAfterFocusRegain

Field Value

bool

Title

Optional title for the share sheet.

public string? Title

Field Value

string

Remarks

For Android:
Requires Android 10+ and is not guaranteed to work when sharing non-text media