9
Xamarin The best damn mobile team, building the best damn mobile platform.

Lightning Talk - Xamarin

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Lightning Talk - Xamarin

XamarinThe best damn mobile team,building the best damn mobile platform.

Page 2: Lightning Talk - Xamarin

What is ? C#

Page 3: Lightning Talk - Xamarin

Some informations 76 Employers ( small ) 20k Consumers 375+k Developers

Start in 2011! - Mono

Page 4: Lightning Talk - Xamarin

Why should I use ? Cross platform You can use your .NET libraries( ….) You can use VisualStudio (.…) Full API access

Page 5: Lightning Talk - Xamarin

R$ R$ R$ R$ R$ R$ R$

Page 6: Lightning Talk - Xamarin

How it works ? iOS ?

http://docs.xamarin.com/guides

Page 7: Lightning Talk - Xamarin

Code Xamarim - Android namespace HelloAndroid

{    [Activity (Label = "HelloAndroid", MainLauncher = true)]    public class MainActivity : Activity    {        int count = 1;

        protected override void OnCreate (Bundle bundle)        {            base.OnCreate (bundle);

            // Set our view from the "main" layout resource            SetContentView (Resource.Layout.Main);

            // Get our button from the layout resource,            // and attach an event to it            Button button = FindViewById<Button> (Resource.Id.myButton);                        button.Click += delegate {                button.Text = string.Format ("{0} clicks!", count++);            };        }    }

Page 8: Lightning Talk - Xamarin

Code Xamarin - iOS namespace HelloIos

{    // The UIApplicationDelegate for the application. This class is responsible for launching the     // User Interface of the application, as well as listening (and optionally responding) to     // application events from iOS.    [Register ("AppDelegate")]    public partial class AppDelegate : UIApplicationDelegate    {        // class-level declarations        UIWindow window;        //        // This method is invoked when the application has loaded and is ready to run. In this         // method you should instantiate the window, load the UI into it and then make the window        // visible.        //        // You have 17 seconds to return from this method, or iOS will terminate your application.        //        public override bool FinishedLaunching (UIApplication app, NSDictionary options)        {            // create a new window instance based on the screen size            window = new UIWindow (UIScreen.MainScreen.Bounds);                        // If you have defined a root view controller, set it here:            // window.RootViewController = myViewController;                        // make the window visible            window.MakeKeyAndVisible ();                        return true;        }    }}

Page 9: Lightning Talk - Xamarin

Thanks! Deivison Servat Sporteman Software Engineer [email protected] @sporteman