Introduction to Xamarin Good evening everyone. Giving you a work welcome Introduction to Xamarin. Our first session in Colombo Xamarin meet up. Hope you guys will join with us in future tech talks also. Please make this as a very interactive session. I hope most of people are mobile engineers. How many of mobile engineers, C#, .Net, Xamarin. Introduction to Xamarin
About me I am Hiran Peiris… I love Xamarin… SSE – Mobile at CMS. From iOS background. 5 years. I do lot of cross platform mobile developments now. Member of Colombo Xamarin Meetup - organizing team I am hiran Cross platform developments Mainly in iOS, Titanium, Phone gap. Now I do lot of Xamarin developments. Member of Colombo Xamarin Meetup - organizing team I am on Facebook, Linked, not using Twitter. I am Hiran Peiris… I love Xamarin…
Colombo Xamarin Meetup This is our Colombo Xamarin Meetup page. You can follow the link. You can join with us there. We will notice you about out next tech talks. So, be in touch. Next teach talk will be on Xamarin Forms. Mastering, Performance optimizing, Custom layouts. http://www.meetup.com/Colombo-Xamarin-Meetup/
agenda Introduction Xamarin compiler internals Xamarin for iOS Xamarin for Android Xamarin Forms Custom renderers Dependency services Q/A Please make this as a very interactive session. But if you get any question in the middle. Please feel free to interrupt and ask.
Are you ready ?
Introduction
What is XamArin Xamarin is a Cross plaform Mobile technology. Is that correct ? No it support for Desktop app also. Mono. Mac. C# 6.0
History Xamarin came from Mono Project (http://www.mono-project.com). Linux, Mac, Windows. Simler to .Net runtime. Cross platform version of .Net runtime. C# developers to write apps that’s runs many platforms. Miguel de Icaza (Creator of Mono and CTO of Xamarin)
How it works ?
Compiler Internals Question ? How C# run in devices. Architecture
Ported mono runtime to each of mobile platforms Mono runtime has ported to mobile OS.
Mono runtime is there, It talks to Darlvivk vertual machain. ART
Objc Reflections API.
App size ?
App size When developing Linker When publishing Now you have a question about packaging
Xamarin for ios Same API name.
iOS tutorial
Xamarin for Android Same Api name.
Android tutorial
Not cross platform yet ?
Xamarin forms This is where the real Cross platform thing happen Xamal language. Like XML. Its really eazy. You will love it.
Forms tutorial
How Form controls works ?
Customize ?
Custom renderers Can we customize Xamarin form controls ?
What is a custom renderer ?
custom renderer tutorial Custom requirement
Forms control code
iOS control code
android control code
More custom functionalities ?
Dependency services When you need something which doesn't support by Xamarin forms. Lets say when you click a button you want to do a share action.
What is a dependency service ? IOS Code for FB Share Form control Execute Android Code for FB Share
Forms code
iOS code
android code
q/A
Thank you…