1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 06:56:10 +00:00

Envoyer vers

This commit is contained in:
Yan Maniez 2019-05-12 22:20:54 +02:00
parent 999a6d4f87
commit 5c46b6d8f9

View file

@ -53,6 +53,16 @@ namespace AideDeJeu.Views.PlayerCharacter
await DependencyService.Get<PlayerCharacterEditorViewModel>().OpenPdfAsync(filePath);
}
if(result == "Envoyer vers...")
{
string filePath = Path.Combine(Xamarin.Essentials.FileSystem.CacheDirectory, Path.Combine("pdf", WebUtility.UrlEncode(PdfFile.Result)));
await Xamarin.Essentials.Share.RequestAsync(new Xamarin.Essentials.ShareFileRequest
{
Title = PdfFile.Result,
File = new Xamarin.Essentials.ShareFile(filePath)
});
}
}
}
}