Xamarin.Essentials 1.4 release notes

Getting Started | What's New | Breaking Changes | Blogs | Thank you | Feedback | Open Source

What's New in this Release

AppTheme theme = AppInfo.RequestedTheme;

public enum AppTheme
{
    Unspecified,
    Light,
    Dark
}
public enum PermissionStatus
{
    Unknown,
    Denied,
    Disabled,
    Granted,
    Restricted
}

PermissionStatus status = await Permissions.CheckStatusAsync<Permissions.LocationWhenInUse>();
if(status != PermissionStatus.Granted)
{
    status = await Permissions.RequestAsync<Permissions.LocationWhenInUse>();
}

Available permissions:

  • Battery

  • CalendarRead

  • CalendarWrite

  • Camera

  • ContactsRead

  • ContactsWrite

  • Flashlight

  • LaunchApp

  • LocationWhenInUse

  • LocationAlways

  • Maps

  • Media

  • Microphone

  • NetworkState

  • Phone

  • Reminders

  • Sms

  • Speech

  • StorageRead

  • StorageWrite

  • Vibrate

  • GH-957 Get complementary color extension (via @mrlacey)

var complement = color.GetComplementary();
  • GH-978 New weight converters kilograms, stones, pounds. (via @munkii)
  • GH-935 New meters to feet converters (via qmark)
var pounds = UnitConverters.KilogramsToPounds(79.2);
var kilograms = UnitConverters.PoundsToKilograms(174.6061);
var pounds = UnitConverters.StonesToPounds(5);
var stones = UnitConverters.PoundsToStones(70);
var feet = UnitConverters.MetersToInternationalFeet(3048);
var meters = UnitConverters.InternationalFeetToMeters(10000);
  • GH-969 Cliboard changed event (via @Mrnikbobjeff)
  • GH-1002 Add share source position for iOS when using share API
  • GH-997 Add Platform Extensions for Activity & UIViewController

Release History

  • Thursday, February 20, 2020 - Xamarin.Essentials 1.4.0
  • Friday, January 10, 2020 - Xamarin.Essentials 1.4.0-pre2 (1.4.0 Pre Release 2)
  • Monday, January 6, 2020 - Xamarin.Essentials 1.4.0-pre (1.4.0 Pre Release 1)

Xamarin.Essentials 1.4.0 (1.4.0)

Issues Fixed

  • GH-946 URL encode phone number on android
  • GH-1036 Cache Idiom on UWP so crash on background doesn't occur
  • GH-1028 Ensure Android returns phone on devices with TV flag
  • GH-1021 Fix crash on UWP when checking mainthread on startup
  • GH-988 Align iOS Orientation sensor with fixed refernce frame
  • GH-969 Fix conversion error on AtmosphersToPascals & PascalsToAtmospheres
  • GH-926 Fix wrong network state on some older android devices
  • GH-925 Properly cleanup of some javacasts in code
  • GH-1019 Cleanup boxing code in IEquatable
  • GH-1034 On iOS ensure that app has network access via settings when checking
  • GH-1088 More exception handling in Connectivity for UWP
  • GH-1087 More exception handling in DeviceInfo for UWP
  • GH-1071 Fix for mock provider on older Android devices.

Breaking Changes

  • None

Blogs

Xamarin Blogs

Thank you

Thank you to our community for helping to make Xamarin.Essentials even better!

This release, we received amazing contributions from these individuals. Give them a big round of applause!

Author Description PR
Janus Weil (@janusw) Fix iOS OrientationSensor #988
Patrick Long (@munkii) Add Weight Converstions #983
Bob Whitten (@bobwhitten) Start Pop Over iOS Implementation #980
Matt Lacey (@mrlacey) Add get complement for color #970
Pedro Jesus (@pictos) Add Atmospheres & Pascals Conversions #969
Vũ Đức Tuyến (@tuyen-vuduc) Start of opening activity/viewcontroller #954
Manish Kungwani (@manishkungwani) Fix phone number encoding on Android #946
qmark (@qmark) Add more unit converters #935
Niklas Schilli (@Mrnikbobjeff) Add Clipboard Changed events #720

Feedback welcome

Your feedback is important to us. If you encounter problems with Xamarin.Essentials, check the Xamarin Forums and Xamarin.Forms GitHub for existing issues. Report new issues and suggestions on GitHub.

Open Source

Xamarin.Essentials 1.4.0 is based on the open-source Xamarin.Essentials repository: