1 introduction to xamarin

42
#XamarinDevDays

Upload: nicolo-carandini

Post on 13-Jan-2017

97 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: 1   introduction to xamarin

#XamarinDevDays

Page 2: 1   introduction to xamarin
Page 3: 1   introduction to xamarin

Slides, Demos, & Lab - Clone or Download:

http://github.com/xamarin/dev-days-labs

Page 4: 1   introduction to xamarin

#XamarinDevDays

Syncfusion.comSponsor

Page 5: 1   introduction to xamarin

Free Syncfusion License

Deliver innovation with ease

Page 6: 1   introduction to xamarin

#XamarinDevDays

Microsoft.comSponsor

Page 7: 1   introduction to xamarin

#XamarinDevDays

DomusDotNet.orgSupporter

Page 8: 1   introduction to xamarin
Page 9: 1   introduction to xamarin
Page 10: 1   introduction to xamarin
Page 11: 1   introduction to xamarin

iOS WindowsAndroid

Objective-C

Xcode

C#

Visual Studio

Java

Android Studio

No shared code • Many languages & development environments • Multiple teams

Page 12: 1   introduction to xamarin

App Generator

Lua

Javascript

Actionscript

HTML+CSS

Limited native API access • Slow performance • Poor user experience

Page 13: 1   introduction to xamarin

Shared C# codebase • 100% native API access • High performance

iOS C# UI Windows C# UIAndroid C# UI

Shared C# Mobile

Page 14: 1   introduction to xamarin

Microsoft.Phone Microsoft.Networking Windows.Storage Windows.Foundation Microsoft.Devices

System.Data System.Windows System.Numerics System.Core System.ServiceModel

System.Net System System.IO System.Linq System.Xml

Page 15: 1   introduction to xamarin

MapKit UIKit iBeacon CoreGraphics CoreMotion

System.Data System.Windows System.Numerics System.Core System.ServiceModel

System.Net System System.IO System.Linq System.Xml

Page 16: 1   introduction to xamarin

Text-to-speech ActionBar Printing Framework Renderscript NFC

System.Data System.Windows System.Numerics System.Core System.ServiceModel

System.Net System System.IO System.Linq System.Xml

Page 17: 1   introduction to xamarin

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.

Page 18: 1   introduction to xamarin
Page 19: 1   introduction to xamarin

✓Always Up-to-Date

Page 20: 1   introduction to xamarin
Page 21: 1   introduction to xamarin

Xamarin is included

in Visual Studio

Page 22: 1   introduction to xamarin

Xamarin.com/Download

Page 23: 1   introduction to xamarin

• Create UI with drag & drop

simplicity

• Target multiple screen

sizes, resolutions and

Android versions

• Layouts saved in standard

Android XML files

Page 24: 1   introduction to xamarin

• Multi-Touch Enabled

• Super Fast

• Rotate, screenshots,

location changes, and

more!

http://bit.ly/hyperv-android

Page 25: 1   introduction to xamarin

• Follows familiar Visual Studio

designer idioms

• Supports all UIKit elements

• Edit custom and 3rd party

components

• Live preview of changes to

properties

Page 26: 1   introduction to xamarin

• Multi-Touch Enabled

• Pressure Sensitive

• Super Fast

• Rotate, screenshots,

location changes

• Never leave VS

Page 27: 1   introduction to xamarin
Page 28: 1   introduction to xamarin
Page 29: 1   introduction to xamarin
Page 30: 1   introduction to xamarin
Page 31: 1   introduction to xamarin
Page 32: 1   introduction to xamarin

Xamarin.iOS Xamarin.Android

Page 33: 1   introduction to xamarin
Page 34: 1   introduction to xamarin
Page 35: 1   introduction to xamarin

Mac

iOS

Android

Windows Phone

Calca iCircuit Touch Draw

86%

14%

72%

28%

77%

23%

70%

30%61%39%

94%

6%

88%

12%

76%

24%

90%

10%

Page 36: 1   introduction to xamarin
Page 37: 1   introduction to xamarin
Page 38: 1   introduction to xamarin

Shared C# Backend

Page 39: 1   introduction to xamarin

What if we didn’t have to write this code?

What if we could access it from shared code?

UI+APIs UI + APIsUI + APIs

Battery

GPS

Lights

Notifications

Settings

Text To Speech

Battery

GPS

Lights

Notifications

Settings

Text To Speech

Battery

GPS

Lights

Notifications

Settings

Text To Speech

Page 40: 1   introduction to xamarin

TextToSpeech

Speak(“Hello World”);

AVSpeechSynthesizer SpeechSynthesizer

Page 41: 1   introduction to xamarin

Common API

Page 42: 1   introduction to xamarin

10 Minute Break

Nicolò Carandini

@TPCWare

Microsoft MVP

[email protected] blog.tpcware.com @TPCWare