lightning talk - xamarin

Post on 08-Dec-2014

370 Views

Category:

Education

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

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

What is ? C#

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

Start in 2011! - Mono

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

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

How it works ? iOS ?

http://docs.xamarin.com/guides

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++);            };        }    }

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;        }    }}

Thanks! Deivison Servat Sporteman Software Engineer deivison.sporteman@gmail.com @sporteman

top related