Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

[Enhancement] Add Text to ShareFileRequest

Open JKennedy24 opened this issue 6 years ago • 6 comments
trafficstars

Summary

ShareFileRequest currently allows you to specify a Title and a File where as ShareTextRequest allows you to also specify Text

API Changes

Add ShareText property to ShareFileRequest class as well as a new constructor and implement

Intended Use Case

An example of how this would be used is sharing a photo to whatsapp with some text

JKennedy24 avatar Jul 22 '19 08:07 JKennedy24

Looking forward for share file with text feature.

I want to share app link with Image created by app.

ghost avatar Jul 28 '19 06:07 ghost

I am also looking for share link with file

glintpursuit avatar Feb 28 '20 09:02 glintpursuit

I did find this the other day:

https://docs.microsoft.com/en-us/xamarin/essentials/share?context=xamarin%2Fandroid&tabs=android#files

But I'm not sure if its this feature

JKennedy24 avatar Feb 28 '20 09:02 JKennedy24

Useful information on what works and what does not: https://github.com/xamarin/Essentials/issues/952#issuecomment-610631089

mattleibow avatar Nov 06 '20 02:11 mattleibow

@mattleibow I created a small draft to test this issue The behaviour is very strange. for example, if we set the value for the title or text, the file will not be sent on macOS

dimonovdd avatar Jan 27 '21 19:01 dimonovdd

Yo, this issue was resolved? Need add Text to ShareFileRequest or make something like ShareFileWithTextRequest.

MeinLiX avatar Aug 30 '22 15:08 MeinLiX

any chance to add this back in some milestone again?

gsgou avatar Feb 14 '23 12:02 gsgou

I think at this point it's safe to say that this won't be making it's way into Xamarin.Essentials anymore. Keep your eye on .NET MAUI for all new development! Thanks for all input and efforts here.

jfversluis avatar Aug 18 '23 08:08 jfversluis