mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-11-04 01:00:23 +00:00 
			
		
		
		
	Envoyer vers
This commit is contained in:
		
							parent
							
								
									999a6d4f87
								
							
						
					
					
						commit
						5c46b6d8f9
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -53,6 +53,16 @@ namespace AideDeJeu.Views.PlayerCharacter
 | 
				
			||||||
                await DependencyService.Get<PlayerCharacterEditorViewModel>().OpenPdfAsync(filePath);
 | 
					                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)
 | 
				
			||||||
 | 
					                });
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue