Xamarin.Mobile

Xamarin.Mobile is a library that runs on iPhone, Android and Windows Phone 7 which abstracts the underlying functionality and exposes a common API that developers can build against.

Often developers find that many other services that are common across mobile platforms are not exposed by the .NET BCL. This makes the effort of sharing code more cumbersome than it should be. Developers resort to creating their own platform abstractions, or designing pluggable architectures just to get access to the system address book, the phone’s GPS, the compass, the accelerometer, the notification service or the system calendar.

The Xamarin Mobile Architecture The Xamarin Mobile Architecture

The Xamarin.Mobile API is currently a preview release. You can download the binaries here and the API documentation is available here.

We are gathering suggestions to better understand which are the most important APIs for our community.

If you want to send us feedback or report bugs, please file a bug report in our bug tracking system.

Release Notes:

Release v0.4

Features:
  • Includes a build for Mono for Android 4.2
Fixes:
  • Fixed memory leaks in Geolocator on Android
  • Fixed an issue with rotation with MediaPicker on Android
  • Fixed an issue with MediaPicker.Pick*Async on iPads
  • Fixed an issue with MediaPicker.Take*Async on iOS devices with no camera
  • Fixed an issue with cancelling MediaPicker UIs on iOS devices

Release v0.3

Features:
  • MediaPicker class, providing asynchronous methods to invoke the system UI for taking and picking photos and video
  • Windows Phone version of all existing APIs
Enhancements:
  • Improved AddressBook iteration performance on Andriod by up to 2x
  • Many queries now translate to native queries on Android, improving performance on many simple queries
  • Removed Contact.PhotoThumbnail
  • Added Contact.GetThumbnail()
  • Added Task Contact.SaveThumbnailAsync(string)
  • Added bool AddressBook.LoadSupported
Fixes:
  • Fixed an issue where iterating the AddressBook without a query would always return aggregate contacts, regardless of PreferContactAggregation
  • Fixed an AddressBook crash with the latest version of MonoTouch