introduction to xamarin philly code camp 2014

Post on 07-May-2015

286 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Introduction 2 Xamarin and cross platform development in C# with Brent Schooley, James Montemagno, and Greg Shackles. Presented at Philly Code Camp 2014

TRANSCRIPT

Cross-platform mobile development in !C# with Xamarin!

Your Presenters!

Greg Shackles! Brent Schooley!James Montemagno!Senior Engineer!Olo!

Developer Evangelist!Twilio!

Developer Evangelist!Xamarin!

greg@gregshackles.com!

@gshackles!

brent@twilio.com!

@brentschooley!

james.montemagno@xamarin.com!

@jamesmontemagno!!motzcod.es!

Philly Xamarin Developer Group!

meetup.com/PhillyXamarin!§  Monthly Meetups!§  Ran by local developers!§  Next meetup: July 8th!!

Agenda!

Part 1:!§  Introduction!§  Architecting Mobile Apps!§  Overview of Xamarin!§  Live Coding Adventure!§  Q&A!

Part 2:!§  What’s new in Xamarin 3!§  Live Coding Adventure!§  Introduction to

Xamarin.Forms!§  Live Coding Adventure!§  Q&A!

Automatically test your app on!hundreds of mobile devices !

Create native iOS, Android, Mac and Windows apps in Visual Studio and C#

What is native?!

The Anatomy of a Native App!

Xamarin apps look and feel native because they are native!

Native User Interfaces! Native API Access! Native Performance!

Architecting !Mobile Apps!

The Silo Approach!

Build App !Multiple Times!

The Write-Once-Run-Anywhere Approach!

Lowest Common!Denominator!

Xamarin’s Unique Approach!

Native With !Code Sharing!

How does it work?!

Windows APIs!

iOS APIs | 100% Coverage!

Android APIs | 100% Coverage!

Anything you can do in Objective-C or Java !can be done in C# with Xamarin using Visual Studio!

Xamarin.iOS does full Ahead Of Time (﴾AOT)﴿ compilation to produce an ARM binary for Apple’s App Store.

Native Performance

Xamarin.Android takes advantage of Just In Time (﴾JIT)﴿ compilation on the Android device.

Always Up to Date

Same day support for iOS 5, iOS 6, iOS 6.1, iOS 7, iOS 7.1!

Emerging Technologies & Devices Always up-‐to-‐date with the latest APIs from

Apple and Google.

Android Wear Google Glass Amazon Fire Phone Amazon Fire TV!

Let’s talk about !code sharing…!

Xamarin’s Unique Approach!

Native With !Code Sharing!

Code Sharing: Accelerate Development

Android  

iOS  

Mac  

WinPhone  

WP  

File Linking

Shared Code Projects

Portable Class Libraries •  1 Assembly •  Multiple Platforms •  Including: •  Xamarin.Android •  Xamarin.iOS

Portable Class Libraries Features • Centralized Code Sharing • How you expect it to work • Debug seamlessly into and out of PCL

• Project/Assembly Sharing • NuGet

Distribute Everywhere A Xamarin app is an app, distribute it everywhere

Products

Xamarin.Mac

Xamarin Studio

Xamarin Test Cloud

Component Store

Xamarin.iOS

Xamarin.Android

Xamarin for Visual Studio

.NET Mobility Scanner

Development Environment

Xamarin Studio PC or Mac

Visual Studio Plugin VS 2010/2012/2013

Visual Studio Integration

Visual Studio Integration

Debug to: •  Emulators •  Devices

Integrated into toolbar •  Status •  Logs •  List of devices

Just Click Start Debugging!

Xamarin Studio

Android Designer

iOS Designer

Xamarin Component Store

Build Apps Faster

.NET Mobility Scanner

http://scan.xamarin.com How mobile is your .NET? •  Scan .exe or .dll to determine compatibility •  Generates full report:

Unrivaled Mobile Development Training!Live unlimited mobile development training from mobile experts, !in your time-zone, on your schedule and as often as you'd like!

xamarin.com/university!

Live Coding Adventure 1!

Q & A!!Get your free C# t-shirt:!xamarin.com/shirt!

@gshackles! @brentschooley! @jamesmontemagno!

15 Minute Break!

Cross-platform mobile development in !C# with Xamarin!

Your Presenters!

Greg Shackles! Brent Schooley!James Montemagno!Senior Engineer!Olo!

Developer Evangelist!Twilio!

Developer Evangelist!Xamarin!

greg@gregshackles.com!

@gshackles!

brent@twilio.com!

@brentschooley!

james.montemagno@xamarin.com!

@jamesmontemagno!!motzcod.es!

Agenda!

Part 1:!§  Introduction!§  Architecting Mobile Apps!§  Overview of Xamarin!§  Live Coding Adventure!§  Q&A!

Part 2:!§  What’s new in Xamarin 3!§  Live Coding Adventure!§  Introduction to

Xamarin.Forms!§  Live Coding Adventure!§  Q&A!

What’s new in!Xamarin 3!

Major Elements of Xamarin 3!

1.  Xamarin Designer for iOS!2.  Xamarin Studio & Visual Studio Enhancements!3.  Easy code sharing!4.  Xamarin.Forms!

Xamarin Designer for iOS!

Fully integrated into Xamarin Studio & Visual Studio!!iOS 6 & 7 Storyboard support!!Intuitive event handling!!Support for auto-layout!!Live preview of custom controls!!!!!!!!!!

Xamarin Studio: Beautiful new look!

NuGet Package Manager!

NuGet support combined with the Xamarin Component Store gives Xamarin developers the most comprehensive ecosystem of libraries at their fingertips!

Xamarin Designer for iOS in Xamarin Studio!

First Class F# Support!

Shared Projects!

The easiest way to share code!!Eliminates the hassle of file-linking!!Easier to collaborate with other Xamarin Studio and !Visual Studio users !

Live Coding Adventure 2!

Portable  Class  Libraries  

Xamarin + Xamarin.Forms!With Xamarin.Forms: !

more code-sharing, native controls!Traditional Xamarin approach!

Shared UI Code!

Xamarin + Xamarin.Forms!

Shared UI Code!

Quickly and easily build native user interfaces using shared code!!Xamarin.Forms elements map to native controls and behaviors!!Mix-and-match Xamarin.Forms with native APIs!

What’s Included!

§  40+ Pages, Layouts, and Controls!§  Build from code behind or XAML!

§  Two-way Data Binding!!§  Navigation!

§  Animation API!

§  Dependency Service!

§  Messaging Center!

Pages!

Content! MasterDetail! Navigation! Tabbed! Carousel!

Layouts!

Stack! Absolute! Relative! Grid! ContentView! ScrollView! Frame!

Controls!

ActivityIndicator! BoxView! Button! DatePicker! Editor!

Entry! Image! Label! ListView! Map!

OpenGLView! Picker! ProgressBar! SearchBar! Slider!

Stepper! TableView! TimePicker! WebView! EntryCell!

ImageCell! SwitchCell! TextCell! ViewCell!

Live Coding Adventure 3!

Xamarin Recap!

§  iOS, Android, Mac, and Windows apps all in C#!

§  Full API Coverage!

§  Native Performance!§  Native User Interface!§  Code Sharing Between All Platforms!

Philly Xamarin Developer Group!

meetup.com/PhillyXamarin!§  Monthly Meetups!§  Ran by local developers!§  Next meetup: July 8th!!

Key Attendees!

xamarin.com/evolve!

Unrivaled Mobile Development Training!Live unlimited mobile development training from mobile experts, !in your time-zone, on your schedule and as often as you'd like!

xamarin.com/university!

Q & A!!Get your free C# t-shirt:!xamarin.com/shirt!

@gshackles! @brentschooley! @jamesmontemagno!

top related