las vegas code camp - ios development in c# with xamarin

31
Who’s this guy? James Montemagno Developer Evangelist [email protected] http://motz.codes @JamesMontemagno

Upload: james-montemagno

Post on 16-Jul-2015

113 views

Category:

Engineering


4 download

TRANSCRIPT

Page 1: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Who’s this guy?

James Montemagno

Developer Evangelist

[email protected] http://motz.codes @JamesMontemagno

Page 2: Las Vegas Code Camp -  iOS Development in C# with Xamarin
Page 3: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Xamarin – Your Complete Mobile Solution

Design Develop Integrate

Learn

Xamarin Platform

Test Monitor

Page 4: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Development Approaches

Page 5: Las Vegas Code Camp -  iOS Development in C# with Xamarin

The Silo Approach

Build app multiple times!

Page 6: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Write-‐Once-‐Run-‐Anywhere Approach

Lowest Common

Denominator!

Page 7: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Xamarin’s Unique Approach

Native with!Code Sharing!

Page 8: Las Vegas Code Camp -  iOS Development in C# with Xamarin

How does Xamarin work?

Page 9: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Windows APIs

100% Coverage

Page 10: Las Vegas Code Camp -  iOS Development in C# with Xamarin

iOS APIs

100% Coverage

Page 11: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Android APIs

100% Coverage

Page 12: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Why C#?

Page 13: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Statically Types

Page 14: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Callback Nightmare

Page 15: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Enter Async/Await

Page 16: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Async/Await iOS Methods

https://developer.apple.com/library/ios/documentation/uikit/reference/uiview_class/UIView/UIView.html#//apple_ref/occ/clm/UIView/animateWithDuration:animations:

Page 17: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Async/Await iOS Methods

Page 18: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Live Coding Adventure

Page 19: Las Vegas Code Camp -  iOS Development in C# with Xamarin

The World of Mobile

Page 20: Las Vegas Code Camp -  iOS Development in C# with Xamarin

More Than One Mobile OS

Page 21: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Android Is A Little Bit Popular

Page 22: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Portable Class Libraries

•  1 Assembly •  Multiple Platforms •  Including:

–  Xamarin.Android –  Xamarin.iOS –  Xamarin.Mac

•  Visual Studio & Xamarin Studio

Page 23: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Shared Projects

Page 24: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Leverage Awesome Libraries with NuGet

Page 25: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Xamarin’s Unique Approach

Native with!Code Sharing!

Page 26: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Live Coding Adventure 2

Page 27: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Can we share more code?

Page 28: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Xamarin + Xamarin.Forms

Xamarin Native Native with Xamarin.Forms: More code-‐sharing, all native

Shared UI Code!

Page 29: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Xamarin.Forms Example

Page 30: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Get Started Xamarin.com

Page 31: Las Vegas Code Camp -  iOS Development in C# with Xamarin

Thank you! Q&A

James Montemagno

Developer Evangelist

[email protected] http://motz.codes @JamesMontemagno