In the recent release of Xamarin.Essentials (1.1.0) we introduced several new stable features including detect shake, browser customization, and a plethora of platform helpers. The team has also been working hard on one of the top requested features, which is around files. So to get feedback from developers we snuck in a few preview features into 1.1.0 including the ability to share a file or add a file as an email attachment! It is extremely easy to get started using these new preview features with just a few lines of code.
Introducing Xamarin.Essentials 1.1.0! Xamarin.Essentials’ built-in Accelerometer API now gives you ability to detect shake movement, Geolocation API detects mock locations, and the Browser API now supports more customization.
Debugging your ASP.NET Core Web API backend against you Android emulator should be simple, and with this quick tip you can use Xamarin.Essentials and Kestral to enable local debugging.
An essential part of any mobile application is the ability to persist data. Sometimes that is a large amount of data that requires a database, but often it is smaller pieces of data such as settings and preferences that need to be persisted between application launches. This is where Xamarin.Essentials can help out with its wide range of cross-platform APIs for mobile apps.
As a mobile app developer, it's great to be able to pull data from the server to our apps to provide users with a delightful experience. Of course, until your user puts their device on airplane mode or hits a rough patch with no cell reception. To provide the best user experience we need access to the current network state of our users' device. Better yet, be able to register for changes to that network state. Doing this will allow our mobile apps to react to different network conditions to provide users with instant feedback. With the connectivity API in Xamarin.Essentials, we can do just that with a few lines of code.
Every mobile application requires access to native functionality. When developing native mobile apps with Xamarin, developers are able to integrate deeply into iOS and Android since Xamarin exposes every API directly in C# to access these features. To help streamline and simplify development when needing to add native features to apps we are pleased to introduce Xamarin.Essentials, a new library that abstracts these native APIs into a set of cross-platform APIs. This means that you now have access to over 30 native features from single APIs that can be called directly from your shared business logic.
Today, at Microsoft Connect(); 2018, we have several exciting announcements about brand new capabilities and foundational improvements in the Xamarin platform driven by your generous feedback.
Visual Studio developers everywhere will enjoy updated stable releases of Xamarin with Visual Studio 2017 and Visual Studio 2017 for Mac. We are also giving you the first hands-on preview of Visual Studio 2019, along with Xamarin.Forms 4.0. Below are just a few highlights from today’s announcements:
Each week on The Xamarin Show we explore the latest and greatest in Xamarin development by looking at new features built into Visual Studio, build native cross-platform user interfaces with Xamarin.Forms, and access to native APIs with Xamarin.Essentials. I am also joined by Xamarin experts that show off the awesome beautiful libraries and applications they are building with Xamarin. No matter what type of development you are into there is surely something for you over on The Xamarin Show. This week, I wanted to feature a few "Snack Pack" episodes that show off an awesome feature in under 10 minutes!
We announced Xamarin.Essentials, a core set of cross-platform APIs to help developers build native apps, at Microsoft Build 2018. Xamarin.Essentials gives developers access to over thirty platform-specific APIs that can be accessed from their shared code, including geolocation, secure storage, sensors, device information, and many more. Best of all, Xamarin.Essentials can be used in any iOS, Android, UWP, or Xamarin.Forms app, regardless of how you create the user interface. Feedback on the first preview from developers has been fantastic, with praise of a simple and straightforward way to access these native features.
When developing iOS and Android apps with Xamarin, developers can access every native platform API using C#. These bindings not only expose the platform APIs in C#, but add powerful C# features, such as async/await, events, delegates, and more. This is a huge advantage for developers, because they never have to leave C#, whether they're writing shared business logic, user interface, or accessing native features. One key feature developers often look for when developing cross-platform apps with Xamarin is a way to access common native features from their shared code without having to write their own abstractions or find an open source plugin created by the community.