Native User Interfaces
Xamarin apps are built with standard, native user interface controls. Apps not only look the way the end user expects, they behave that way too.
Xamarin apps are built with standard, native user interface controls. Apps not only look the way the end user expects, they behave that way too.
Xamarin apps have access to the full spectrum of functionality exposed by the underlying platform and device, including platform-specific capabilities like iBeacons and Android Fragments.
Xamarin apps leverage platform-specific hardware acceleration, and are compiled for native performance. This can’t be achieved with solutions that interpret code at runtime.
Anything you can do in Objective-C, Swift or Java, you can do in C#.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
public Dictionary<string, UIImage> GetImages(string directory) { var images = new Dictionary<string, UIImage>(); var paths = Directory.EnumerateFiles(directory, "*.png"); foreach (var path in paths) { images[path] = UIImage.FromFile(path); } return images; } public async Task<List<FeedItem>> GetFeedItems(DateTime date) { var feed = "http://planet.xamarin.com/feed/"; var response = await httpClient.GetStringAsync(feed); var items = await ParseFeedAsync(response); return items.Where(item => item.Published.Date == date).ToList(); } |
C# uses type inference to give developers more safety in fewer keystrokes, without boilerplate or verbose type annotations.
Asynchronous programming (async) keeps apps responsive. In Objective-C, Swift and Java, async requires callbacks and manual bookkeeping. C#’s language-level support makes async a breeze.
Generics guarantee that collections and other compound types are used safely, without the need for casts or comments. Xamarin tools understand intent better thanks to richer types, with benefits like ubiquitous code completion.
In Java for Android, lambdas are unavailable. In Objective-C, lambdas are extremely cumbersome. In C#, lambdas couldn’t be simpler, making functional programmers feel right at home.
Xamarin apps use native UIs on every platform to enable the best possible experiences. Simplify mobile app design with our Android and iOS designers, and build your own app today.
Learn more about Xamarin Designers for Visual Studio and Visual Studio for Mac.