Essentials
Essentials copied to clipboard
[Enhancement] Add Text to ShareFileRequest
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
Looking forward for share file with text feature.
I want to share app link with Image created by app.
I am also looking for share link with file
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
Useful information on what works and what does not: https://github.com/xamarin/Essentials/issues/952#issuecomment-610631089
@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
Yo, this issue was resolved? Need add Text to ShareFileRequest or make something like ShareFileWithTextRequest.
any chance to add this back in some milestone again?
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.