Lightning Talk - Xamarin

314 views

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
314
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lightning Talk - Xamarin

  1. 1. Xamarin The best damn mobile team, building the best damn mobile platform.
  2. 2. What is ? C#
  3. 3. Some informations  76 Employers ( small )  20k Consumers  375+k Developers  Start in 2011! - Mono
  4. 4. Why should I use ?  Cross platform  You can use your .NET libraries( ….)  You can use VisualStudio (.…)  Full API access
  5. 5.  R$ R$ R$ R$ R$ R$ R$
  6. 6. How it works ? iOS ?  http://docs.xamarin.com/guides
  7. 7. 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++); }; } }
  8. 8. 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; } } }
  9. 9. Thanks!  Deivison Servat Sporteman  Software Engineer  deivison.sporteman@gmail.com  @sporteman

×