Пример #1
0
 protected override SystemInfo GetSystemInfo ()
 {
     if (systemInfo == null) {
         systemInfo = new Toggl.Joey.Bugsnag.Data.SystemInfo () {
             Id = DeviceId,
             Manufacturer = Android.OS.Build.Manufacturer,
             Model = Android.OS.Build.Model,
             ScreenDensity = androidContext.Resources.DisplayMetrics.Density,
             ScreenResolution = AndroidInfo.GetScreenResolution (androidContext),
             TotalMemory = (ulong)AndroidInfo.GetMemoryAvailable (),
             OperatingSystem = "android",
             OperatingSystemVersion = Android.OS.Build.VERSION.Release,
             ApiLevel = (int)Android.OS.Build.VERSION.SdkInt,
             IsRooted = AndroidInfo.CheckRoot (),
             Locale = Java.Util.Locale.Default.ToString (),
         };
     }
     return systemInfo;
 }
Пример #2
0
 protected override SystemInfo GetSystemInfo ()
 {
     if (systemInfo == null) {
         systemInfo = new Toggl.Ross.Bugsnag.Data.SystemInfo () {
             Id = DeviceId,
             Manufacturer = "Apple",
             Model = AppleInfo.Model,
             ScreenDensity = UIScreen.MainScreen.Scale,
             ScreenResolution = AppleInfo.ScreenResolution,
             TotalMemory = AppleInfo.TotalMemory,
             OperatingSystem = "iOS",
             OperatingSystemVersion = NSProcessInfo.ProcessInfo.OperatingSystemVersionString,
             IsJailbroken = UIApplication.SharedApplication.CanOpenUrl (new NSUrl ("cydia://")),
             Locale = NSLocale.CurrentLocale.LocaleIdentifier,
             DiskSize = AppleInfo.FileSystemAttributes.Size,
         };
     }
     return systemInfo;
 }