Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 40

#XamarinDevDays

Agenda

• Dan Ardelean - Introduction to Xamarin


• Alessandro Pozone - Cross Platform UI with Xamarin.Forms
• Marco Minerva– Connected Apps with Azure
• Lunch – Courtesy of Xamarin
• File -> New App Workshop
Supporter meetup.com/DotNetLombardia

#XamarinDevDays
Supporter

#XamarinDevDays
Sponsor Syncfusion.com

#XamarinDevDays
Free Syncfusion License
Essential Studio for Xamarin
Cross-platform mobile development for Xamarin.Forms,
Xamarin.iOS, and Xamarin.Android.

Claim your free license at:


www.Syncfusion.com/XamarinDevDays

Deliver innovation with ease


Sponsor Microsoft.com

#XamarinDevDays
Native iOS & Android
Development with Xamarin

Dan Ardelean
Twitter: @danardelean
Microsoft MVP Windows Platform Development
Xamarin Certified Mobile Developer
Xamarin – Your Complete Mobile Solution

Develop Test Build Distribute Monitor


Architecting Mobile Apps
Silo Approach

iOS Android Windows

Objective-C Java C#
Xcode Android Studio Visual Studio

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


Write Once, Run Anywhere

Lua
Javascript
Actionscript
App Generator
HTML+CSS

Limited native API access • Slow performance • Poor user experience


Xamarin’s Unique Approach

iOS C# UI Android C# UI Windows C# UI

Shared C# Mobile

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


Windows APIs

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

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

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


iOS – 100% API Coverage

MapKit UIKit iBeacon CoreGraphics CoreMotion

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

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


Android – 100% API Coverage

Text-to-speech ActionBar Printing Framework Renderscript NFC

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

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


Native Performance

Xamarin.iOS does full Ahead Of Time Xamarin.Android takes advantage of


(AOT) compilation to produce an ARM Just In Time (JIT) compilation on the
binary for Apple’s App Store. Android device.
Anything you can do in Objective-C, Swift, or Java
can be done in C# and Visual Studio with Xamarin.
Same-day support:
• iOS 5
• iOS 6
• iOS 7
• iOS 7.1

✓Always Up-to-Date
• iOS 8
• iOS 9

Full support for:


• Apple Watch
• Android Wear
• Amazon Fire TV
• Google Glass
• and much more
Development Experience
Xamarin
Xamarin isisincluded
included
in
in Visual
VisualStudio
Studio

Including Community Edition!


Visual Studio Integration

Xamarin.com/Download
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 PC

• Multi-Touch Enabled
• Super Fast
• Rotate, 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 Remoting

• Multi-Touch Enabled
• Pressure Sensitive
• Super Fast
• Rotate, screenshots,
location changes
• Never leave VS

*available as a preview
Xamarin Studio – Mac
Open Source – open.xamarin.com
Sharing Code
Portable Class Libraries

1 Assembly
Multiple Platforms
Including:
Xamarin.iOS and Xamarin.Android
NuGet
Shared Projects
Calca iCircuit Touch Draw

14%
28%

Android
86% 72%

39

Code Sharing
23% 30%
%
iOS 61
77% 70%
%

6% 12%
24%
Stats
Mac
94% 88% 76%

10%

Windows Phone
90%
Let’s Build an App
Simplifying Development
Shared C# Backend
Platform
Specific Code
UI+APIs UI + APIs UI + APIs

Battery Battery Battery What if we didn’t have to


GPS GPS GPS write this code?
Lights Lights Lights
Notifications Notifications Notifications
Settings Settings Settings What if we could access
Text To Speech Text To Text To it from shared code?
Speech Speech
Speak(“Hello World”);

AVSpeechSynthesizer TextToSpeech SpeechSynthesizer


Plugins for Xamarin github.com/xamarin/plugins

Common API
10 Minute Break

Dan
Ardelean
Microsoft MVP Windows Platform Dev
Xamarin Certified Mobile Developer

Email Blogs Twitter


dan.ardelean@live.com http://sviluppomobile.blogspot.com @danardelean

You might also like