Table of Contents

Struct AdditionalShareData

Namespace
Uralstech.UShare

Additional data regarding a share event.

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

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

public string? AndroidFileProviderAuthority

Field Value

string

BasePath

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

public string? BasePath

Field Value

string

KeepDataAfterFocusRegain

Whether to keep the file(s) after the user regains focus on the app after sharing. This only applies to share events where you provide the raw data to be shared, like with ShareData(string, string, byte[], AdditionalShareData), and not for cases where the data is already present in the app's storage.

public bool KeepDataAfterFocusRegain

Field Value

bool

Remarks

By default, the data is deleted from the app's storage when the user regains focus on the app after sharing to prevent the share directory from getting too big.

Title

Optional title for the share sheet (Android 10+, but not guaranteed to work when sharing non-text media).

public string? Title

Field Value

string