using System; using System.Collections.Generic; using Xamarin.Essentials; using Xamarin.Forms.Xaml; namespace PRS.Mobile { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class LogViewer { public LogViewer() { InitializeComponent(); } protected override void OnAppearing() { base.OnAppearing(); Log.Text = InABox.Mobile.MobileLogging.ReadLog(); } private async void Email_OnClicked(object sender, EventArgs e) { var message = new EmailMessage { Subject = $@"PRS Mobile LogFiles", Body = InABox.Mobile.MobileLogging.ReadLog(), To = new List { "support@prsdigital.com.au" } }; await Email.ComposeAsync(message); } } }