xamarin dev days - intro to xamarin

42
#XamarinDevDays Nish Anil Senior Program Manger, Xamarin Team @ Microsoft @nishanil

Upload: svswaminathan

Post on 21-Feb-2017

189 views

Category:

Technology


0 download

TRANSCRIPT

PowerPoint Presentation

#XamarinDevDays

Nish Anil Senior Program Manger, Xamarin Team @ Microsoft@nishanil

1

Swami - Introduction to Xamarin Vidyasagar - Cross Platform UI with Xamarin.FormsAbhishek Connected Apps with AzureLunchFile -> New App WorkshopAgenda

Slides, Demos, & Lab - Clone or Download:http://github.com/xamarin/dev-days-labs

#XamarinDevDays

Syncfusion.comSponsor

Essential Studio for XamarinCross-platform mobile development for Xamarin.Forms, Xamarin.iOS, and Xamarin.Android.

Claim your free license at:www.Syncfusion.com/XamarinDevDaysFree Syncfusion LicenseDeliver innovation with ease

5

#XamarinDevDays

Microsoft.comSponsor

#XamarinDevDays

Microsoft.comSponsor

7

#XamarinDevDays

meetup.com/XHackersXamarin Community

Swaminathan Vetri@svswaminathanMicrosoft MVP Visual Studio and Development TechnologiesNative iOS & Android Development with Xamarin

Swaminathan VetriSenior Engineer @ TargetMicrosoft MVP - Visual Studio & Development technologiesWindows/Web/Cross platform mobile developerBlogger, Speaker, Amateur photographer, Gadget freak

Xamarin Your Complete Mobile Solution

DevelopTestBuildDistributeMonitor

Xamarin is your complete mobile solution.

Xamarin Platform is usually what you hear about which is building native iOS, Android, Mac, and Windows Apps all in C#

However Xamarin offers a wide range of products for developers to go mobile including Test Cloud, Hockey App, and a way to learn all of mobile with University.11

Architecting Mobile Apps

So we know what we want how do we get there? Lets talk about the state of mobile development.12

Silo ApproachiOSWindowsAndroidObjective-CXcodeC#Visual StudioJavaAndroid StudioNo shared code Many languages & development environments Multiple teams

Multiple TeamsMultiple Code BasesExpensive & SlowPositive = Great apps delivered to users platformNegative = Development hampered by multiple code bases & fragmentation13

Write Once, Run Anywhere

App Generator

LuaJavascriptActionscriptHTML+CSS

Limited native API access Slow performance Poor user experience

Unhappy UsersUnhappy DevelopersIncrease in Abandoned AppsLimited to what is implemented

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/20/1614

Xamarins Unique ApproachShared C# codebase 100% native API access High performance

iOS C# UI Windows C# UIAndroid C# UIShared C# Mobile

Build 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.8/20/16 6:22 PM15

Windows APIsMicrosoft.PhoneMicrosoft.NetworkingWindows.StorageWindows.FoundationMicrosoft.Devices

System.DataSystem.WindowsSystem.NumericsSystem.CoreSystem.ServiceModelSystem.NetSystemSystem.IOSystem.LinqSystem.Xml

iOS 100% API CoverageMapKitUIKitiBeaconCoreGraphicsCoreMotion

System.DataSystem.WindowsSystem.NumericsSystem.CoreSystem.ServiceModelSystem.NetSystemSystem.IOSystem.LinqSystem.Xml

Build 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.8/20/16 6:22 PM17

Android 100% API CoverageText-to-speechActionBarPrinting FrameworkRenderscriptNFC

System.DataSystem.WindowsSystem.NumericsSystem.CoreSystem.ServiceModelSystem.NetSystemSystem.IOSystem.LinqSystem.Xml

Build 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.8/20/16 6:22 PM18

Native PerformanceXamarin.iOS does full Ahead Of Time (AOT) compilation to produce an ARM binary for Apples App Store.Xamarin.Android takes advantage of Just In Time (JIT) compilation on the Android device.

Anything you can do in Objective-C, Swift, or Javacan be done in C# and Visual Studio with Xamarin.

Coming up next is bubbles 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/20/1620

Always Up-to-DateFull support for:Apple WatchAndroid WearAmazon Fire TVGoogle Glassand much moreSame-day support:iOS 5iOS 6iOS 7iOS 7.1iOS 8iOS 9

Development Experience

Xamarin is includedin Visual StudioXamarin is included in Visual StudioIncluding Community Edition!

Xamarin.com/DownloadVisual Studio Integration

Android Designer

Create UI with drag & drop simplicity

Target multiple screen sizes, resolutions and Android versions

Layouts saved in standard Android XML files

Android Hyper-V Emulators for PCMulti-Touch EnabledSuper FastRotate, screenshots, location changes, and more!http://bit.ly/hyperv-android

Xamarin Designer for iOS

Follows familiar Visual Studio designer idioms

Supports all UIKit elements

Edit custom and 3rd party components

Live preview of changes to properties

Visual Studio iOS Simulator RemotingMulti-Touch EnabledPressure SensitiveSuper FastRotate, screenshots, location changesNever leave VS

*available as a preview

Xamarin Studio Mac

Xamarin Studio on Mac offers: Android, iOS and Mac developmentWorld Class IDE with great features:Code AnalysisUpload to Test FlightGit & Subversion IntegrationCode CompletionCode NavigationEasy transition from Visual StudioThe same Solution & Projects open in BOTH Xamarin Studio and Visual Studio!29

Open Source open.xamarin.com

Sharing Code

1 AssemblyMultiple Platforms

Including:Xamarin.iOS and Xamarin.AndroidPortable Class Libraries

NuGet

Shared Projects

Code SharingStatsMaciOSAndroidWindows PhoneCalcaiCircuitTouch Draw

Lets Build an App

Simplifying Development

Shared C# Backend

PlatformSpecific CodeWhat if we didnt have to write this code?

What if we could access it from shared code?

UI+APIsUI + APIsUI + APIsBatteryGPSLightsNotificationsSettingsText To SpeechBatteryGPSLightsNotificationsSettingsText To SpeechBatteryGPSLightsNotificationsSettingsText To Speech

TextToSpeechSpeak(Hello World);

AVSpeechSynthesizerSpeechSynthesizer

Plugins for Xamarin Common API

github.com/xamarin/plugins

Thank You!!!

Swaminathan VetriMicrosoft MVP [email protected]@svswaminathan

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/20/1642