Share.RequestAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
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
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
Task when completed.