Download presentation
Presentation is loading. Please wait.
1
Xamarin: The Future of Mobile Development
BRK3284 Xamarin: The Future of Mobile Development James Montemagno Principal Program Manager © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
2
Who’s this guy? Weekly development podcast mergeconflict.fm
Weekly development show xamarinshow.com James Montemagno Principal Program Manager – Mobile Developer Tools, Microsoft
3
4/19/2018 6:11 AM What is Native? © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
4
Native User Interfaces
4/19/2018 Native User Interfaces Native API Access Native Performance © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
5
Architecting Mobile Apps
4/19/2018 6:11 AM Architecting Mobile Apps © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
6
Silo approach iOS Android Windows Objective-C/Swift Xcode Java Android Studio C# Visual Studio No shared code • Many languages and development environments • Multiple teams
7
Write once, run anywhere
4/19/2018 Write once, run anywhere App generator Lua Javascript Actionscript HTML+CSS Limited native API access • Slow performance • Poor user experience © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
8
Xamarin’s unique approach
Build 2015 4/19/2018 6:11 AM Xamarin’s unique approach iOS C# UI Android C# UI Windows C# UI Shared C# logic Shared C# codebase • 100% native API access • High performance © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
9
How Xamarin Works 4/19/2018 6:11 AM
© Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
10
C# Windows APIs Microsoft.Phone Windows.Storage Microsoft.Devices
Microsoft.Networking Windows.Storage Windows.Foundation Microsoft.Devices System.Net System System.IO System.Linq System.Xml System.Data System.Windows System.Numerics System.Core System.ServiceModel C#
11
C# iOS – 100% API coverage Build 2015 4/19/2018 6:11 AM MapKit UIKit
iBeacon CoreGraphics CoreMotion System.Net System System.IO System.Linq System.Xml System.Data System.Windows System.Numerics System.Core System.ServiceModel C# © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
12
Android – 100% API coverage
Build 2015 4/19/2018 6:11 AM Android – 100% API coverage Text-to-speech ActionBar Printing Framework Renderscript NFC System.Net System System.IO System.Linq System.Xml System.Data System.Windows System.Numerics System.Core System.ServiceModel C# © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
13
4/19/2018 6:11 AM User Interface © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
14
Xamarin.Forms- Cross Platform UI
Shared C# Logic Shared UI Code Shared Native User Interface Shared App Logic
15
Xamarin Live Player Continuously deploy & debug apps
16
Xamarin Live Player Setup
18
Demo Xamarin Live Player 4/19/2018 6:11 AM
© Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
19
Xamarin Native – Traditional UI
iOS C# Windows C# Android C# Shared C# Logic 3 Native User Interfaces Shared App Logic
20
Native performance .APP .APK
ARM BINARY Runs natively .APP AOT .NET C# Bindings IL + JIT Runs natively .NET Compile and Link .APK C# Bindings Xamarin.iOS does full Ahead Of Time (AOT) compilation to produce an ARM binary for Apple’s App Store. Xamarin.Android takes advantage of Just In Time (JIT) compilation on the Android device.
21
✓ Always up-to-date Same-day support: Full support for: Apple Watch
iOS 5 iOS 6 iOS 7 iOS 8 iOS 9 iOS 10 iOS 11 Full support for: Apple Watch Apple TV Android Wear Amazon Fire TV Google Glass and much more
22
Code sharing stats iCircuit Touch Draw Evolve App (Xamarin.Forms)
Android Code sharing stats iOS Mac Windows
23
included in Visual Studio
Xamarin Platform is included in Visual Studio Including Community Edition
24
Visual Studio Visual Studio for Mac
25
Open Source – open.xamarin.com
26
4/19/2018 Anything you can do in Objective-C, Swift, or Java can be done in C# with Xamarin © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
27
Demo Xamarin End-to-End 4/19/2018 6:11 AM
© Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
28
Xamarin + Xamarin.Forms
iOS C# UI Windows C# UI Android C# UI Shared C# Logic Shared C# Logic Xamarin.Forms Traditional Xamarin approach With Xamarin.Forms: More code-sharing, all native
29
What’s included Shared C# Logic ✓ 40+ Pages, layouts, and controls
Shared UI Code ✓ 40+ Pages, layouts, and controls (Build from code behind or XAML) ✓ Two-way data binding ✓ Navigation ✓ Animation API ✓ Dependency Service ✓ Messaging Center
30
Native UI from shared code
<?xml version="1.0" encoding="UTF-8"?> <TabbedPage xmlns=" xmlns:x=" x:Class="MyApp.MainPage"> <TabbedPage.Children> <ContentPage Title="Profile" Icon="Profile.png"> <StackLayout Spacing="20" Padding="20" VerticalOptions="Center"> <Entry Placeholder="Username" Text="{Binding Username}"/> <Entry Placeholder="Password" Text="{Binding Password}" IsPassword="true"/> <Button Text="Login" TextColor="White" BackgroundColor="#77D065" Command="{Binding LoginCommand}"/> </StackLayout> </ContentPage> <ContentPage Title="Settings" Icon="Settings.png"> <!-- Settings --> </TabbedPage.Children> </TabbedPage>
31
Embedding Shared C# Logic Xamarin.Forms Works on ContentPages
Full support for DependencyService and MessagingCenter Xamarin.Forms iOS C# Android C# Windows C# Shared C# Logic © Microsoft Corporation. All rights reserved.
32
Demo Xamarin.Forms Embedding 4/19/2018 6:11 AM
© Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
33
4/19/2018 6:11 AM The Future © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
34
Learn More At our Xamarin.Forms talk Xaml Standard Fast Renderers
Microsoft Build 2017 4/19/2018 6:11 AM Learn More At our Xamarin.Forms talk Xaml Standard Fast Renderers URL navigation with AppLinks Memory Reduction Enhanced theming and styling Startup Performance Improvements Embedding native controls into Forms apps XAMLC performance improvements Improved and extended GestureRecognizers New Platforms Support .NET Standard © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
35
Highlights Beyond the Line of Business New Platforms Forms Embedding
Microsoft Build 2017 4/19/2018 6:11 AM Highlights Beyond the Line of Business New native capabilities Reduced memory usage, improved performance New Platforms Going beyond mobile (Android, iOS, Tizen, UWP) Desktop: macOS, Linux and WPF. Forms Embedding Embed single pages into a native host. Android, UWP and iOS. © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
36
Xamarin & Xamarin.Forms ecosystem
37
Fundamental Improvements
© Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
38
Our proud tradition Native-first
Microsoft Build 2017 4/19/2018 6:11 AM Our proud tradition Native-first Anything you can do with Java, ObjC or Swift you can do in Visual Studio with C# or F# Same-day releases for new platform capabilities © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
39
Third Party Native APIs made Easy
4/19/2018 6:11 AM Third Party Native APIs made Easy Android: Java Binding Projects iOS: ObjC Binding Projects New! CocoaPods Importer Upcoming SwiftNetifier – project and consume Swift APIs into .NET Fully automated © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
40
Apple—extensions Extensions are everywhere Mac and iOS
Microsoft Build 2017 4/19/2018 6:11 AM Apple—extensions Extensions are everywhere Mac and iOS © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
41
Extensions and Runtimes
Microsoft Build 2017 4/19/2018 6:11 AM Extensions and Runtimes Main App Extension #1 Extension #2 Xamarin Runtime Xamarin Runtime Xamarin Runtime © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
42
Sharing code Last Year Now Main App Extension #1 Extension #2 Main App
Microsoft Build 2017 4/19/2018 6:11 AM Sharing code Last Year Now Main App Extension #1 Extension #2 Main App Extension #1 Extension #2 Xamarin Runtime Xamarin Runtime Xamarin Runtime Xamarin Runtime © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
43
Visual Studio for Mac iOS, Android, & macOS .NET development
Included with your Visual Studio subscription at no additional cost Visual Studio for Mac iOS, Android, & macOS .NET development .NET Core & ASP.NET Core Docker Unity Tools for Azure Azure Functions Free Community Edition Available today!
44
Visual Studio for Mac IntelliSense Powered by Roslyn
Powerful Refactoring Connected App Templates Multi-process Debugging TextMate Bundles
45
.NET in Every Application
4/19/2018 6:11 AM .NET in Every Application © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
46
.NET .NET Everywhere .NET Everywhere .NET STANDARD LIBRARY
Microsoft Connect 2016 4/19/2018 6:11 AM .NET Everywhere Device native .NET Cloud native .NET Everywhere .NET STANDARD LIBRARY © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
47
.NET Standard
48
IoT Stack Libraries for message queues: MQTT AMQP
Connect to Azure IoT Hub Deployment Model Every major Linux architecture Self-contained Remote debugging Remote deployment
49
Native Clients in C#: Mobile, Mac, & Windows
Microsoft Build 2017 4/19/2018 6:11 AM Native Clients in C#: Mobile, Mac, & Windows .NET goes to every single client platform Android C# iOS C# tvOS C# macOS C# Linux C# Windows C# Web Shared C# Logic © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
50
There are existing codebases in ObjC, Java, Swift, C++.
Microsoft Build 2017 4/19/2018 6:11 AM There are existing codebases in ObjC, Java, Swift, C++. How could you reuse all the .NET greatness there? All those amazing libraries All the NuGets No need to start from scratch Easy migration © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
51
Turns any .NET library into a native library
Microsoft Build 2017 4/19/2018 6:11 AM Turns any .NET library into a native library Android Java iOS Swift tvOS Swift macOS Objective-C Linux C++ Jar/Aar DynamicLib Framework Framework C++ Shared C#/.NET Logic © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
52
Demo Embeddinator-4000 4/19/2018 6:11 AM
© Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
53
4/19/2018 6:11 AM Video © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
54
Alaska Airlines brings consumer UX to 15K+ employees
4/19/2018 6:11 AM Alaska Airlines brings consumer UX to 15K+ employees Mobile-only, cloud-first approach ”Best Airline Staff in North America 2017” award winner, among dozens of others Automates mobile lifecycle to ship new features quickly Visual Studio Tools for Xamarin, Azure, Xamarin Test Cloud, HockeyApp, Visual Studio Team Services Empower employees Optimize operations
55
Mobilizing people and processes to drive revenue
4/19/2018 6:11 AM Mobilizing people and processes to drive revenue Gives teams anytime, anywhere access to customer data Reduces manual, paper-based ordering Faster contract approval and deal turn-around time Engages customers with interactive proposals Visual Studio Tools for Xamarin, Azure, Visual Studio Team Services Engage customers Empower employees Optimize operations
56
Free self-guided courses
Take free self-guided courses that cover the core Xamarin concepts and count towards certification. Register at: university.xamarin.com/self-guided Get a full subscription for live classes, advanced topics, and to complete certification. Sign up at: xamarin.com/university
57
Call to action Get started: xamarin.com/download
Watch our Xamarin.Forms presentation (BRK3282) Embeddinator: © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
58
Please evaluate this session
Tech Ready 15 4/19/2018 Please evaluate this session From your Please expand notes window at bottom of slide and read. Then Delete this text box. PC or tablet: visit MyIgnite Phone: download and use the Microsoft Ignite mobile app Your input is important! © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
59
4/19/2018 6:11 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.