Mastering Xamarin.Forms : build rich, maintainable multiplatform native mobile apps with Xamarin.Forms / Ed Snider.
Material type: TextSeries: Community experience distilledPublisher: Birmingham, UK : Packt Publishing, 2016Description: 1 online resource (1 volume) : illustrationsContent type:- text
- computer
- online resource
- 9781785284946
- 1785284940
- Build rich, maintainable multiplatform native mobile apps with Xamarin.Forms
- 005.3 23
- QA76.76.A65
Description based on online resource; title from cover (Safari, viewed February 12, 2016).
Includes index.
Annotation Build rich, maintainable multiplatform native mobile apps with Xamarin.FormsAbout This Book Build an effective mobile app architecture with the Xamarin.Forms toolkit Maximize the testability, flexibility, and overall quality of your Xamarin.Forms mobile app This step-by-step tutorial is packed with real-world scenarios and solutions to build professional grade mobile apps with Xamarin.FormsWho This Book Is ForThis book is intended for C# developers who are familiar with the Xamarin platform and the Xamarin.Forms toolkit. If you have already started working with Xamarin.Forms and want to take your app to the next level and make it more maintainable, testable, and flexible, then this book is for you.What You Will Learn Find out how, when, and why you should use architecture patterns and get best practices with Xamarin.Forms Implement the Model-View-ViewModel (MVVM) pattern and data-binding in Xamarin.Forms mobile apps Extend the Xamarin.Forms navigation API with a custom ViewModel-centric navigation service Leverage the inversion of control and dependency injection patterns in Xamarin.Forms mobile apps Work with online and offline data in Xamarin.Forms mobile apps Test both business logic and user interface code in Xamarin.Forms mobile apps Use platform-specific APIs to build rich custom user interfaces in Xamarin.Forms mobile apps Explore how to improve mobile app quality with analytics and crash reporting using Xamarin InsightsIn DetailDiscover how to extend and build upon the components of the Xamarin.Forms toolkit to develop an effective, robust mobile app architecture. Starting with an app built with the basics of the Xamarin.Forms toolkit, we'll go step by step through several advanced topics to create a solution architecture rich with the benefits of good design patterns and best practices.We'll start by introducing a core separation between the app's user interface and the app's business logic by applying the MVVM pattern and data binding.Discover how to extend and build upon the components of the Xamarin.Forms toolkit to develop an effective, robust mobile app architecture. Starting with an app built with the basics of the Xamarin.Forms toolkit, we'll go step by step through several advanced topics to create a solution architecture rich with the benefits of good design patterns and best practices.We'll start by introducing a core separation between the app's user interface and the app's business logic by applying the MVVM pattern and data binding.Then we will focus on building out a layer of plugin-like services that handle platform-specific utilities such as navigation, geo-location, and the camera, as well as how to use these services with inversion of control and dependency injection. Next we'll connect the app to a live web-based API and set up offline synchronization. Then, we'll dive into testing the appboth the app logic through unit tests and the user interface using Xamarin's UITest framework. Finally, we'll integrate Xamarin Insights for monitoring usage and bugs to gain a proactive edge on app quality.Style and approachThis easy-to-follow, code-rich guide will walk you through building a real-world Xamarin.Forms mobile app from start to finish. Each chapter builds upon the app by applying new advanced functionalities, design patterns, and best practices.
Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Preface; Chapter 1: Getting Started; Introducing the app idea; Defining features; Creating the initial app; Setting up the solution; Updating the Xamarin.Forms packages; Creating the main page; Running the app; Creating the new entry page; Creating the entry detail page; Summary; Chapter 2: MVVM and Data Binding; Understanding the MVVM pattern; Adding MVVM to the app; Setting up the app structure; Adding ViewModels; Adding MainViewModel; Adding DetailViewModel; Adding NewEntryViewModel
Using the location service on the new entry pageAdding the location service implementation; Registering dependencies; Registering the platform-service implementations; Registering the ViewModels; Registering the navigation service; Updating the TripLog app; Updating the navigation service to handle ViewModel creation and dependency injection; Summary; Chapter 5: User Interface; Custom Renderers; Creating a TableView DatePicker; Value Converters; Creating a reverse visibility Value Converter; Creating an integer to image Value Converter; Summary; Chapter 6: API Data Access
Creating an API with Microsoft Azure App ServicesBrowsing and adding data; Creating a base HTTP service; Creating an API Data Service; Updating the TripLog app ViewModels; Offline data caching; Adding the Akavache library; Maintaining an offline data cache; Summary; Chapter 7: Authentication; Adding identity and authentication to Azure Mobile Apps; Setting up permissions; Setting up an identity provider; Creating an authentication service; Adding a sign in page; Summary; Chapter 8: Testing; Unit testing; Testing ViewModels; Running unit tests in Xamarin Studio; Automated UI testing
The Xamarin UITest frameworkCommon UITest methods; Creating a UITest project in Xamarin Studio; Initializing the TripLog app for UITest; Testing views; Running UI tests; Running UI tests locally; Running UI tests in Xamarin Test Cloud; Summary; Chapter 9: App Analytics; Mobile app analytics and crash reporting; Xamarin Insights; Setting up Xamarin Insights; Creating an analytics service; Tracking exceptions and events; Summary; Index
eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - Worldwide