Пример #1
0
 public EnvironmentInfo()
 {
     this.Platform           = "ANDROID";
     this.Model              = Android.OS.Build.Model;
     this.Make               = Android.OS.Build.Manufacturer;
     this.PlatformVersion    = Android.OS.Build.VERSION.Release;
     this.Locale             = Application.Context.Resources.Configuration.Locale.ToString();
     this.FrameworkUserAgent = InternalSDKUtils.GetMonoRuntimeVersion();
     this.PclPlatform        = "PCL/Xamarin.Android";
     this.PlatformUserAgent  = string.Format(CultureInfo.InstalledUICulture, "{0}_{1}", this.Platform, this.PlatformVersion);
 }
Пример #2
0
 public EnvironmentInfo()
 {
     this.Platform           = UIDevice.CurrentDevice.SystemName;
     this.Model              = UIDevice.CurrentDevice.Model;
     this.Make               = "apple";
     this.PlatformVersion    = UIDevice.CurrentDevice.SystemVersion;
     this.Locale             = NSLocale.AutoUpdatingCurrentLocale.LocaleIdentifier;
     this.FrameworkUserAgent = InternalSDKUtils.GetMonoRuntimeVersion();
     this.PclPlatform        = "PCL/Xamarin.iOS";
     this.PlatformUserAgent  = string.Format(CultureInfo.InstalledUICulture, "{0}_{1}",
                                             this.Platform.Replace(" ", string.Empty), this.PlatformVersion);
 }