developing native ios & android apps in c# with xamarin

39
Developing native iOS & Android apps in C# James Montemagno Developer Evangelist, Xamarin @JamesMontemagno | www.MotzCod.es

Upload: james-montemagno

Post on 07-May-2015

439 views

Category:

Engineering


3 download

DESCRIPTION

Introduction to iOS develop development in C# with xamarin. This presentation goes through the basics of the Xamarin Paltform as well as why C# is so awesome. Also touch on a bit of Android and cross platform development

TRANSCRIPT

Page 1: Developing native iOS & Android apps in c# with xamarin

Developing native iOS & Android apps in C#

James Montemagno Developer Evangelist, Xamarin @JamesMontemagno | www.MotzCod.es

Page 2: Developing native iOS & Android apps in c# with xamarin

The World of Mobile

Page 3: Developing native iOS & Android apps in c# with xamarin

More than one OS

Page 4: Developing native iOS & Android apps in c# with xamarin

Android is a bit popular

Page 5: Developing native iOS & Android apps in c# with xamarin

Architecting Mobile Apps

Page 6: Developing native iOS & Android apps in c# with xamarin

Single App

Page 7: Developing native iOS & Android apps in c# with xamarin

Single App

Page 8: Developing native iOS & Android apps in c# with xamarin

Single App

Page 9: Developing native iOS & Android apps in c# with xamarin

More Platforms == More Users

Page 10: Developing native iOS & Android apps in c# with xamarin

Silo Approach

Build Apps Multiple Times

Page 11: Developing native iOS & Android apps in c# with xamarin

Write Once, Run Anywhere Approach

Lowest Common Denominator

App Generation

Page 12: Developing native iOS & Android apps in c# with xamarin

Write Once, Run Anywhere Approach

Lowest Common Denominator

App Generation

Page 13: Developing native iOS & Android apps in c# with xamarin

Xamarin Approach

Native with Code Sharing

Page 14: Developing native iOS & Android apps in c# with xamarin

Windows APIs

100% Coverage

Page 15: Developing native iOS & Android apps in c# with xamarin

iOS APIs

100% Coverage

Page 16: Developing native iOS & Android apps in c# with xamarin

Android APIs

100% Coverage

Page 17: Developing native iOS & Android apps in c# with xamarin

C# runs on 2.6 Billion Devices

Page 18: Developing native iOS & Android apps in c# with xamarin

C#Native AppsNo Compromises

Page 19: Developing native iOS & Android apps in c# with xamarin

Why C#?

§  Statically Typed

Page 20: Developing native iOS & Android apps in c# with xamarin

Why C#?

§  LINQ §  Lambdas

Returns an array of “Names” from the list of People.

Page 21: Developing native iOS & Android apps in c# with xamarin
Page 22: Developing native iOS & Android apps in c# with xamarin

Why C#?

§  Events & Delegates

Page 23: Developing native iOS & Android apps in c# with xamarin

Callback Hell

Page 24: Developing native iOS & Android apps in c# with xamarin

Callback Hell

Page 25: Developing native iOS & Android apps in c# with xamarin

Enter Async/Await

Page 26: Developing native iOS & Android apps in c# with xamarin

Enter Async/Await

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

Page 27: Developing native iOS & Android apps in c# with xamarin

Enter Async/Await

Page 28: Developing native iOS & Android apps in c# with xamarin

How Xamarin Works

•  C# + .NET Runtime •  Native UI •  Native Performance

Page 29: Developing native iOS & Android apps in c# with xamarin

Let’s build a native iOS appall in C# with Xamarin

Page 30: Developing native iOS & Android apps in c# with xamarin

Sharing Code

Page 31: Developing native iOS & Android apps in c# with xamarin

File Linking

Page 32: Developing native iOS & Android apps in c# with xamarin

Shared Code Projects

Page 33: Developing native iOS & Android apps in c# with xamarin

Portable Class Libraries •  1 Assembly •  Multiple Platforms •  Including:

•  Xamarin.Android •  Xamarin.iOS

Page 34: Developing native iOS & Android apps in c# with xamarin

Live Coding Adventure 2

Page 35: Developing native iOS & Android apps in c# with xamarin

Xamarin is more

Xamarin Test Cloud

Xamarin for Visual Studio

Page 36: Developing native iOS & Android apps in c# with xamarin

Where Do I Start? Xamarin.com

Page 37: Developing native iOS & Android apps in c# with xamarin

Try Xamarin Today

Page 38: Developing native iOS & Android apps in c# with xamarin

http://meetup.com/SeattleMobileDevelopers

§  First Tuesday §  All Topics §  Lightning Talks

Page 39: Developing native iOS & Android apps in c# with xamarin

Find Me: @JamesMontemagno www.MotzCod.es GitHub.com/JamesMontemagno Xamarin: @XamarinHQ www.Xamarin.com

Latest App My StepCounter for Android & iOS

www.MyStepCounterApp.com 100% Open Source Starter Compatible