protected override void OnLaunched(LaunchActivatedEventArgs e) { SentryXamarin.Init(options => { options.Dsn = "https://[email protected]/5560112"; options.AddXamarinFormsIntegration(); options.Debug = true; options.DiagnosticLogger = new TraceDiagnosticLogger(SentryLevel.Debug); options.AttachScreenshots = true; }); Frame rootFrame = Window.Current.Content as Frame; if (rootFrame == null) { rootFrame = new Frame(); rootFrame.NavigationFailed += OnNavigationFailed; Rg.Plugins.Popup.Popup.Init(); global::Xamarin.Forms.Forms.SetFlags("Shapes_Experimental"); global::Xamarin.Forms.Forms.Init(e, Rg.Plugins.Popup.Popup.GetExtraAssemblies()); Window.Current.Content = rootFrame; } if (e.PrelaunchActivated == false) { if (rootFrame.Content == null) { rootFrame.Navigate(typeof(MainPage), e.Arguments); } Window.Current.Activate(); } }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // Override point for customization after application launch. // If not required for your application you can safely delete this method SentryXamarin.Init(new SentryXamarinOptions { Dsn = "https://[email protected]/5582505" }); return(true); }
public App() { SentryXamarin.Init(o => { o.Debug = true; o.Dsn = "https://[email protected]/5428537"; o.CacheDirectoryPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "sentryLogs"); }); InitializeComponent(); MainPage = new NavigationPage(new MainPage()); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_main); SentryXamarin.Init(options => { options.Dsn = "https://[email protected]/5711576"; }); //throw null; }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { SentryXamarin.Init(options => { options.Dsn = "https://[email protected]/5560112"; options.AddXamarinFormsIntegration(); options.Debug = true; }); Rg.Plugins.Popup.Popup.Init(); global::Xamarin.Forms.Forms.SetFlags("Shapes_Experimental"); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle savedInstanceState) { SentryXamarin.Init(options => { options.Dsn = "https://[email protected]/5560112"; options.AddXamarinFormsIntegration(); options.Debug = true; options.AttachScreenshots = true; }); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Rg.Plugins.Popup.Popup.Init(this); Platform.Init(this, savedInstanceState); SetStatusBarColor(Color.Rgb(46, 14, 51)); Forms.SetFlags("Shapes_Experimental"); Forms.Init(this, savedInstanceState); LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { AppCenter.Start("b17f9c9d-e90c-488f-8c4b-92ef3e305c0d", typeof(Analytics), typeof(Distribute)); var versionInfo = Application.Context.ApplicationContext?.PackageManager?.GetPackageInfo(Application.Context.ApplicationContext.PackageName, 0); //var username = System.Security.Principal.WindowsIdentity.GetCurrent(); SentryXamarin.Init(o => { o.AddXamarinFormsIntegration(); o.Dsn = "https://[email protected]/5390642"; o.Release = $"TacControl@{versionInfo?.VersionName}:{versionInfo?.LongVersionCode}"; o.Environment = //username == "Dedmen-PC\\dedmen" ? "Dev" : "Alpha"; }); WifiManager wifiMgr = (WifiManager)ApplicationContext.GetSystemService(Context.WifiService); wifiLock = wifiMgr.CreateWifiLock(WifiMode.Full, "TacControl-udp"); wifiLock.SetReferenceCounted(true); wifiLock.Acquire(); castLock = wifiMgr.CreateMulticastLock("TacControl-udp"); castLock.SetReferenceCounted(true); castLock.Acquire(); ConnectivityManager conMgr = (ConnectivityManager)ApplicationContext.GetSystemService(Context.ConnectivityService); var stuff = conMgr.GetAllNetworks(); var wifiNet = stuff.FirstOrDefault(x => conMgr.GetNetworkInfo(x).Type == ConnectivityType.Wifi); if (wifiNet != null) { var res = conMgr.BindProcessToNetwork(wifiNet); var info = conMgr.GetNetworkInfo(wifiNet); var connInfo = wifiMgr.ConnectionInfo; } //Networking.ConnectionInfo TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); Android.Views.Window window = Window; window.AddFlags(WindowManagerFlags.KeepScreenOn); window.AddFlags(WindowManagerFlags.Fullscreen); LoadApplication(new App((action) => { TaskCompletionSource <object> tcs = new TaskCompletionSource <object>(); bool isMain = MainThread.IsMainThread; RunOnUiThread(() => { try { action(); tcs.SetResult(null); } catch (Exception ex) { tcs.SetException(ex); } }); return(tcs.Task); })); }