Udostępnij za pośrednictwem


Share.RequestAsync Method

Definition

Overloads

RequestAsync(String)

Show the share user interface to share text.

RequestAsync(ShareFileRequest)

Show the user interface to share a file.

RequestAsync(ShareMultipleFilesRequest)

Show the user interface to share a multiple files.

RequestAsync(ShareTextRequest)

Show the share user interface to share text or uri.

RequestAsync(String, String)

Show the share user interface to share text with a title.

RequestAsync(String)

Show the share user interface to share text.

public static System.Threading.Tasks.Task RequestAsync (string text);

Parameters

text
System.String

Text to share.

Returns

System.Threading.Tasks.Task

Task when completed.

Applies to

RequestAsync(ShareFileRequest)

Show the user interface to share a file.

public static System.Threading.Tasks.Task RequestAsync (Xamarin.Essentials.ShareFileRequest request);

Parameters

request
ShareFileRequest

File request to share.

Returns

System.Threading.Tasks.Task

Task when completed.

Applies to

RequestAsync(ShareMultipleFilesRequest)

Show the user interface to share a multiple files.

public static System.Threading.Tasks.Task RequestAsync (Xamarin.Essentials.ShareMultipleFilesRequest request);

Parameters

request
ShareMultipleFilesRequest

Multiple Files request to share.

Returns

System.Threading.Tasks.Task

Task when completed.

Applies to

RequestAsync(ShareTextRequest)

Show the share user interface to share text or uri.

public static System.Threading.Tasks.Task RequestAsync (Xamarin.Essentials.ShareTextRequest request);

Parameters

request
ShareTextRequest

Share request with options.

Returns

System.Threading.Tasks.Task

Task when completed.

Applies to

RequestAsync(String, String)

Show the share user interface to share text with a title.

public static System.Threading.Tasks.Task RequestAsync (string text, string title);

Parameters

text
System.String

Text to share.

title
System.String

Title for the share user interface.

Returns

System.Threading.Tasks.Task

Task when completed.

Applies to