Introduccion a xamarin
date post
13-Apr-2017Category
Software
view
1.000download
6
Embed Size (px)
Transcript of Introduccion a xamarin
PowerPoint Presentation
Apps iOS, Android, Mac, & Windows Mobile Apps nativas en C# con Xamarin
www.hjr.com.mx
MCSD en desarrollo de apps para Windows StoreCertificado Xamarin en desarrollo multiplataformaMicrosoft Student Partner (Gold en 2012-2013)3 aos desarrollando para Windows Phone2 aos con Xamarin Android/IOS
www.hjr.com.mxXamarin
DISEO DESARROLLO - INTEGRACIN
PRUEBAS
MONITOREO
APRENDIZAJE
www.hjr.com.mxXamarin is your complete mobile solution.
Xamarin Platform is usually what you hear about which is building native iOS, Android, Mac, and Windows Apps all in C#
However Xamarin offers a wide range of products for developers to go mobile including Test Cloud, Insights, and a way to learn all of mobile with University.Build 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.9/11/2015 8:22 PM3
Nativo?
www.hjr.com.mxWhat makes up a Native mobile application? I am sure you have heard the native thrown around, but what does that really mean?4
Interfaces de usuarioAcceso a APIs nativas
Rendimiento nativo
www.hjr.com.mxA native app needs a lot of things, but three important ones stick out:Native User Interface: Apps need to look and act correct per platform.Full SDK Access: As a developer we need to add the latest and greatest featuresNative Performance: Needs to be fast and fluid 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.9/11/20155
Arquitectura de apps mviles
www.hjr.com.mxSo we know what we want how do we get there? Lets talk about the state of mobile development.6
Enfoque aisladoiOSWindowsAndroidObjective-CXcodeC#Visual StudioJavaAndroid StudioSin cdigo compartido Mltiples lenguajes & ambientes de desarrollo Mltiples equipos
www.hjr.com.mxVarios equiposVarios origenes de cdigoCaro y lentoPositivo = se entregan buenas apps a los usuarios de las plataformasNegativo= Desarrollo obstaculizado por mltiples bases de cdigo y la fragmentacin7
Escribe una vez, ejecuta en cualquier lugar
App Generator
LuaJavascriptActionscriptHTML+CSS
Acceso limitado a las APIs nativas Rendimiento lento Experiencia de usuario pobre
www.hjr.com.mxUsuarios infelicesDesarrolladores infelicesAumento en las apps abandonadasLimitado en lo que se puede implementar
2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.9/11/20158
Usando Xamarin solamenteBase C# compartida 100% de acceso a APIs nativas Alto rendimiento
iOS C# UI Windows C# UIAndroid C# UIC# Mvil compartido
www.hjr.com.mxUI native por plataformas, aprovechando C#C# + XAMLC# + XMLC# + XIBUna base de lgica compartida, iOS, Android, Mac, Windows Phone, Windows Store, Windows
Build 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.9/11/2015 8:22 PM9
Xamarin + Xamarin.FormsXamarin TradicionalXamarin.Forms:Ms cdigo compartido Todo nativo iOS C# UI Windows C# UIAndroid C# UI
Backend C# compartido
IU Compartida Backend C# compartido
www.hjr.com.mxXamarin recently introduced Xamarin.Forms a new library for cross platform user interface. We will touch up on this later, but this enables you to be highly productive, share code, but build out UI on each platform and access platform APIs.
With Xamarin.Forms you now have a nice Shared UI Code layer, but still access to platform APIsYou can start from native, pick a few screens, or start with forms, and replace with native later
10
XamarinBase C# compartida 100% APIs nativas Alto Rendimiento iOS C# UI Windows C# UIAndroid C# UIC# Mvil compartido
C# Servidor
Linux/MonoCoreCLR
AzureC# compartido Cliente/Servidor
www.hjr.com.mxWith Xamarin it just isnt your front end in C# it is your full backend server as well. With Azure or even on Linux running Mono or the CoreCLR your app is fully C# end to end!Build 2015 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.9/11/2015 8:22 PM11
Porqu C#?
www.hjr.com.mxLets talk a bit about C# and why it is awesome.12
C# es asombroso
Soporte a LINQTrabajo sencillo con XMLManejo de eventos y delegados
www.hjr.com.mxJson.NET ofrece conversiones simples entre una cadena JSON y objetos .NETJSON fcilmente
www.hjr.com.mxUse your favorite libraries like Json.NET!
14
Clases y Mtodos
www.hjr.com.mxHere is an example of creating a class with a method to get names1 Line with LINQ to execute this commandTake advantage of C# features and set properties easily
15
Async/AwaitEscribe cdigo simple de mantener
www.hjr.com.mxThe async and await keywords in C# 5.0 now available to Xamarin developers make asynchronous programming incredibly pleasant. You end up with code that is much more linear and much easier to understand. The compiler does a lot of magic for you which simplifies your code and your life.
16
Mtodos nativos simplificados con Async/AwaitC# con XamarinObjective-C
www.hjr.com.mxWith Xamarin we even extend native methods with C# FeaturesHere there is no need for a callback block, simply await on the animation to finish before continuing on17
Diferencias Android ItemClickC# con XamarinJava
C# & Async con Xamarin
www.hjr.com.mxHere we can see how easy it is just to do a += for an event and not have to implement a bunch of listeners every time. Easy to read, string.Format, using args, etc.In fact we can make this call Async/Await by just adding async to the delegate!
18
Porqu Xamarin?
www.hjr.com.mx
Escribe todo con C#C# ahora se ejecuta en 2.6+ miles de millones de dispositivos
www.hjr.com.mx
Ms de una dcada de experiencia empresarialPrimera liberacin deXamarin.MacLanzado el Programa de Socios(PartnerProgram)200,000DesarrolladoresXamarinFundadoPrimera liberacin deXamarin.AndroidXamarin.iOS lanzado (originalmente conocido como MonoTouch)Fundacin de Ximian
200120032009201120122013
MonoEs lanzadoXimian compradopor NovellXamarin 2.0Component StoreXamarin Test CloudEvolve 2013Sociedad con Microsoft500,000Desarrolladores100+ Socios100+ Componentes
2014
//Xamarin 32000Sociedad con SAPSoporte a Fire TVSociedad con SalesforceVisionario en el Gartner Magic QuadrantSoporte a Google GlassSocio Visual Studio del aoSoporte a Android WearXamarin Evolve 2014800,000Desarrolladores200+ Socios200+ Componentes2015
1 Million de desarrolladoresSociedad con IBMSoporte para Visual Studio 2015Sociedad con OracleSoporte para Apple WatchSoporte para C# 61,100,000Desarrolladores230+ Socios300+ ComponentesXamarin InsightsXamarin University
www.hjr.com.mx
21
Con Xamarin, los desarrolladores combinan todos los beneficios de productividad de C#, Visual Studio y Windows Azure con la flexibilidad de construir rpido para mltiples dispositivosSociedad entre Microsoft y Xamarin
S. Somasegar, Vice Presidente Corporativo, Microsoft
www.hjr.com.mxMajor announcement at the end of 2013:Truly Portable Class LibrariesSupport for VS 2013Special offers for MSDN Subscribers20 City Roadshow!Another partnership at the end of 2014:Support for VS 2015 + Community EditionSpecial MSDN OffersStarter Edition Support for Visual Studio
22
IBM MobileFirst SDK para XamarinAdd-Ons para Xamarin Studio y Visual StudioXamarin.com/IBMIBM y Xamarin
www.hjr.com.mxIBM MobileFirst SDK for Xamarin: A pre-built software library that Xamarin and IBM developers can embed in their mobile apps to connect, secure and manage the apps using IBM Worklight, a part of the IBM MobileFirst portfolio.
IBM MobileFirst Add-Ons for Xamarin Studio and Visual Studio: Extensions that enable developers to configure and access the IBM Worklight server from a single environment.
23
Backend robusto para Apps mvilesOracle Mobile Cloud Services para XamarinNotificaciones PushAutenticacinAPIsAlmacenamiento de datos!Y Mas!Xamarin.com/OracleOracle y Xamarin
www.hjr.com.mx
24
Funcionamiento de Xamarin
www.hjr.com.mxAPIs WindowsMicrosoft.PhoneMicrosoft.NetworkingWindows.StorageWindows.FoundationMicrosoft.Devices
System.Dat