Xamarin Forms: O caminho para 100% de código compartilhado em aplicativos móveis
-
Upload
akamud -
Category
Technology
-
view
190 -
download
0
Transcript of Xamarin Forms: O caminho para 100% de código compartilhado em aplicativos móveis
Xamarin Forms: O caminho para 100% de código compartilhado em aplicativos móveis
Mahmoud Ali
TRILHA | DESENVOLVIMENTO MODERNO
@akamud
Shared C# codebase • 100% native API access • High performance
iOS C# UI Windows C# UIAndroid C# UI
Shared C# Mobile
Abordagem Xamarin
Windows APIs
Microsoft.Phone Microsoft.Networking Windows.Storage Windows.Foundation Microsoft.Devices
System.Data System.Windows System.Numerics System.Core System.ServiceModel
System.Net System System.IO System.Linq System.Xml
iOS – 100% API Coverage
MapKit UIKit iBeacon CoreGraphics CoreMotion
System.Data System.Windows System.Numerics System.Core System.ServiceModel
System.Net System System.IO System.Linq System.Xml
Android – 100% API Coverage
Text-to-speech ActionBar Printing Framework Renderscript NFC
System.Data System.Windows System.Numerics System.Core System.ServiceModel
System.Net System System.IO System.Linq System.Xml
E se a gente nãoprecisasse escreveresses códigos?
E se eles fossemacessíveis do códigocompartilhado?
UI+APIs UI + APIsUI + APIs
Battery
GPS
Lights
Notifications
Settings
Text To Speech
Battery
GPS
Lights
Notifications
Settings
Text To Speech
Battery
GPS
Lights
Notifications
Settings
Text To Speech
Código específico de plataforma
Plugins para Xamarin
API comum
TextToSpeech
Speak(“Hello World”);
AVSpeechSynthesizer SpeechSynthesizer
Plugins para Xamarin - Uso
Xamarin.Forms
Máximo reuso
O que está incluso
✓ 40+ Pages, layouts, e controls
(code-behind ou XAML)
✓ Two-way data binding
✓ Navigation
✓ Animation API
✓ Dependency Service
✓ Messaging Center
✓ Custom Renderers
Xamarin Forms - Pages
Xamarin Forms - Layouts
ActivityIndicator BoxView Button DatePicker Editor
Entry Image Label ListView Map
OpenGLView Picker ProgressBar SearchBar Slider
Stepper TableView TimePicker WebView EntryCell
ImageCell SwitchCell TextCell ViewCell
Xamarin Forms - Controls
XAML ou C#
Write once, render natively
Cenários ideais
Xamarin.Forms Xamarin.Android ou iOS
XAML Previewer
Temas
URL Navigation
Native Embedding
Native Embedding
Grátis e Open Source
Referências
• Getting Started
• Creating Mobile Apps with Xamarin.Forms
• Xamarin Forms GitHub
• Blog | Lambda3
• MonkeyNights
• Maratona Xamarin
Mahmoud Ali
@akamud