Prairie Dev Con Cross Platform Dev with Xamarin

Post on 31-Jul-2015

109 views 1 download

transcript

Cross Platform Development With Xamarin

Lori Lalonde@loriblalonde

Me, Myself and I

Twitter: @loriblalondeEmail: loriblalonde@gmail.comBlog: geekswithblogs.net/lorilalondeLinkedIn: http://ca.linkedin.com/in/lorilalonde

CTTDNUG

What’s all the fuss about?

Develop for Multiple Platforms

Xamarin’s Approach

Shared App Logic in C#

Fully native apps written in C#

Anything you can do in Objective-C or Java can be done in C# with Xamarin.

What do I need to know (besides C#)?

Xamarin.Android

Shared App Logic in C#

Application lifecycle

Android layouts

Activities, Fragments

Resources

…and more

Xamarin.iOS

Application lifecycle

Storyboards

Segues

…and more

Do I REALLY Need A Mac?

+

Targeting iOS?

Yes

How do I get started?

Xamarin Licenses

Starter

FREE

Limited app size

Indie

$25/month*

Unlimited app size

Business

$999/year*

Email support

Additional business features

Organization

$1899/year*

The world’s your oyster

* Per developer, per platform

The Tools

Xamarin Studio + Xamarin Plug-Ins

OR

Visual Studio / Xamarin Plug-in

Shared App Logic in C#Xamarin Starter edition available in Visual Studio Community 2013 with Update 4 (non-enterprise app dev)

Requirements

Windows 8 64 bit Visual Studio 2012 Professional with Update 4 or higher

Xamarin License(s) - Android and/or iOS

Xamarin Platform

Connected to Mac (iOS dev only)

Demo

Code Sharing Strategies

Xamarin’s Default App Architecture

Shared App Logic in C#

iOS C# UI Android C# UI

Windows C# UI

Shared App Logic

~75% - 90% code reuse

Xamarin.Forms App Architecture

Shared App Logic

Xamarin.Forms

~90 - 99% code reuse

Code Sharing Strategies

Shared App Logic in C#

Portable Class Library

Separate library, compiled independently

Added as a reference to each platform-specific project

Shared Library

File linking

Compiled with each platform-specific project

Xamarin.Forms: Build Native User Interfaces using Shared Code

Demo

Xamarin Certification

Xamarin Mobile Developer Certification

Subscribe to Xamarin University

Complete the required courses

Pass the exam (80% or higher)

Certification is valid for 1 year

Xamarin University

university.xamarin.com

$1995 US / year

Over 50 classes

Live instructor-led classes

Access to pre-recorded videos and labs

Additional Resources

Xamarin Documentation – developer.xamarin.com

Pluralsight – pluralsight.com

Book: Xamarin Cross Platform Application Development by Jonathan Peppers (available on Amazon)

Questions?

Please fill out the session survey…

Your feedback matters!

Thanks!

Twitter: @loriblalondeEmail: loriblalonde@gmail.comBlog: geekswithblogs.net/lorilalondeLinkedIn: http://ca.linkedin.com/in/lorilalonde