Argis Runtime SDK for .NET: Building Xamarin Apps

Total Page:16

File Type:pdf, Size:1020Kb

Argis Runtime SDK for .NET: Building Xamarin Apps ArcGIS Runtime SDK for .NET: Building Xamarin Apps Nathan Castle | Thad Tilton Agenda • Xamarin Overview - What it is and why you would use it - Xamarin and ArcGIS Runtime • Getting started - System requirements - Resources and tools • Develop apps with Xamarin - Forms - Native • Recommended patterns • Tips and tricks Xamarin Overview What it is and why you would use it “If you’re interested in mobile development and have .NET background, you’re basically already 80% there. All the architecture, libraries and so on—all of that will be available and familiar to you [in Xamarin].” --James Montemagno, Principal Program Manager, Mobile Developer Tools (Microsoft) What is it? • Software suite for cross-platform .NET development • Libraries for iOS and Android - Mono – open-source .NET implementation for non-Windows platforms - Platform bindings – surface iOS and Android APIs to C# - Xamarin Forms – cross-platform UI library • Development tools - Integrated with Visual Studio - Windows or Mac What can you do with it? • Build .NET apps for iOS, Android, Windows • Write code using C# - Share code across platforms - Leverage platform-specific capabilities as needed • Write UI markup with Xamarin Forms XAML - Share markup across iOS, Android, and UWP • Write platform-specific (native) UI - AXML for Android - Storyboards for iOS - XAML for UWP Why would I use it? Visual Studio and C# Extensive developer community Rapid development Code re-use (cross-platform) UI components render with native look and feel All platform capabilities available Rapid updates Two approaches for Xamarin development … 1. Xamarin Forms: a lot of shared code, less control • UI is defined with a Xamarin flavor of XAML <TimePicker x:Name="StartTimePicker"/> • Subset of UI elements • Rendered as native controls for each platform • Basic cross-platform functionality 2. Xamarin Native: less shared code, more control • Each UI is created using platform-specific controls • *.axml (Android), *.storyboard (iOS), *.xaml (UWP) • User experience is true to the platform • More platform-specific control Getting started Requirements and resources Xamarin with ArcGIS Runtime SDK for .NET • APIs for … - iOS - Android - Forms (supports iOS, Android, UWP) • One common .NET API surface • High-performance 2D and 3D mapping • Take data and functionality offline • Utilize device sensors ArcGIS Runtime SDK for .NET • NuGet packages from NuGet.org within Visual Studio - APIs: WPF, UWP, Android, iOS, Forms (Android, iOS, UWP) - Toolkit • Visual Studio extension (VSIX) - Visual Studio Extensions manager or developers.arcgis.com/downloads - Project templates for each platform - Local NuGet packages - Not available for Visual Studio for macOS ArcGIS Runtime SDK for .NET • Samples: https://github.com/Esri/arcgis-runtime-samples-dotnet • Toolkit (source): https://github.com/Esri/arcgis-toolkit-dotnet • Open source apps: https://developers.arcgis.com/example-apps/ • Documentation - Developers Guide, API reference, Samples - https://developers.arcgis.com/net/ - Tutorials - https://developers.arcgis.com/labs/ • Community and support: https://developers.arcgis.com/net/support/ Xamarin IDE options Windows or Mac Mac OS X Windows Visual Studio for Mac Visual Studio Xamarin Native iOS Requires Mac build host Android macOS * Xamarin Forms iOS Requires Mac build host Android UWP * Not available for ArcGIS Runtime for .NET apps More info at https://visualstudio.microsoft.com/vs/mac/#vs_mac_table Code sharing options • NET Standard library - Defines a set of .NET APIs that can be shared across multiple platforms - Available functionality depends on the .NET Standard version - Code is compiled into an assembly that can be easily shared • Shared projects - Code is compiled into each referencing project - Can use compiler directives (#if) to add platform-specific logic • Portable Class Library (deprecated) - Common API surface that uses interfaces for platform-specific logic • . Demo: Resources developers.arcgis.com Demo: Create a cross-platform Xamarin app Demo Summary What did we see? IDE Productivity - Use Visual Studio for Mac for iOS Android HTTP performance and TLS 1.2 support - Use AndroidClientHandler Toolkit components - Scaleline, Compass, Time Slider Open Source Apps - Lots of app logic at your disposal .NET Standard - Build cross-platform libraries Share your getting started experiences! • How can we make the SDK better for you? - Documentation and samples improvements? • What was hard when you got started? - …and what was easy? • What was great? (so we can do more of it) • What did you wish you knew when you first started? • What would have saved you a lot of time? .
Recommended publications
  • AAS Worldwide Telescope: Seamless, Cross-Platform Data Visualization Engine for Astronomy Research, Education, and Democratizing Data
    AAS WorldWide Telescope: Seamless, Cross-Platform Data Visualization Engine for Astronomy Research, Education, and Democratizing Data The Harvard community has made this article openly available. Please share how this access benefits you. Your story matters Citation Rosenfield, Philip, Jonathan Fay, Ronald K Gilchrist, Chenzhou Cui, A. David Weigel, Thomas Robitaille, Oderah Justin Otor, and Alyssa Goodman. 2018. AAS WorldWide Telescope: Seamless, Cross-Platform Data Visualization Engine for Astronomy Research, Education, and Democratizing Data. The Astrophysical Journal: Supplement Series 236, no. 1. Published Version https://iopscience-iop-org.ezp-prod1.hul.harvard.edu/ article/10.3847/1538-4365/aab776 Citable link http://nrs.harvard.edu/urn-3:HUL.InstRepos:41504669 Terms of Use This article was downloaded from Harvard University’s DASH repository, and is made available under the terms and conditions applicable to Open Access Policy Articles, as set forth at http:// nrs.harvard.edu/urn-3:HUL.InstRepos:dash.current.terms-of- use#OAP Draft version January 30, 2018 Typeset using LATEX twocolumn style in AASTeX62 AAS WorldWide Telescope: Seamless, Cross-Platform Data Visualization Engine for Astronomy Research, Education, and Democratizing Data Philip Rosenfield,1 Jonathan Fay,1 Ronald K Gilchrist,1 Chenzhou Cui,2 A. David Weigel,3 Thomas Robitaille,4 Oderah Justin Otor,1 and Alyssa Goodman5 1American Astronomical Society 1667 K St NW Suite 800 Washington, DC 20006, USA 2National Astronomical Observatories, Chinese Academy of Sciences 20A Datun Road, Chaoyang District Beijing, 100012, China 3Christenberry Planetarium, Samford University 800 Lakeshore Drive Birmingham, AL 35229, USA 4Aperio Software Ltd. Headingley Enterprise and Arts Centre, Bennett Road Leeds, LS6 3HN, United Kingdom 5Harvard Smithsonian Center for Astrophysics 60 Garden St.
    [Show full text]
  • XAMARIN.FORMS for BEGINNERS ABOUT ME Tom Soderling Sr
    XAMARIN.FORMS FOR BEGINNERS ABOUT ME Tom Soderling Sr. Mobile Apps Developer @ Polaris Industries; Ride Command Xamarin.Forms enthusiast DevOps hobbyist & machine learning beginner 4 year XCMD Blog: https://tomsoderling.github.io GitHub: https://github.com/TomSoderling Twitter: @tomsoderling How Deep Pickster Spaniel Is It? THE PLAN • Introduction: Why, What, and When • Overview of Xamarin.Forms Building Blocks • Building a Xamarin.Forms UI in XAML • Data Binding • View Customization • Next Steps & Resources • Please ask any questions that come up! THE PLAN • Introduction: Why, What, and When • Overview of Xamarin.Forms Building Blocks • Building a Xamarin.Forms UI in XAML • Data Binding • View Customization • Next Steps & Resources INTRODUCTION : WHY • WET: the soggy state of mobile app development • Write Everything Twice INTRODUCTION : WHY • WET: the soggy state of mobile app development • Write Everything Twice INTRODUCTION : WHAT • What is Xamarin.Forms? • Cross-platform UI framework • Platforms: • Mobile: iOS 8 and up, Android 4.0.3 (API 15) • Desktop: Windows 10 UWP, MacOS, WFP • Samsung Smart Devices: Tizen INTRODUCTION : WHAT • Brief History: • May 2011, Xamarin founded • MonoTouch and Mono for Android using MonoDevelop IDE • February 2013, release of Xamarin 2.0 • Xamarin Studio IDE & integration with Visual Studio • Renamed to Xamarin.Android and Xamarin.iOS • May 2014, Xamarin.Forms released as part of Xamarin 3 • February 24 2016, Xamarin acquired by Microsoft • Owned, actively developed on, and supported by Microsoft • Free
    [Show full text]
  • Web API and Microsoft Azure
    [ 1 ] www.it-ebooks.info Building Web Services with Microsoft Azure Quickly develop scalable, REST-based applications or services and learn how to manage them using Microsoft Azure Alex Belotserkovskiy Stephen Kaufman Nikhil Sachdeva professional expertise distilled PUBLISHING BIRMINGHAM - MUMBAI www.it-ebooks.info Building Web Services with Microsoft Azure Copyright © 2015 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: May 2015 Production reference: 1220515 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78439-837-8 www.packtpub.com www.it-ebooks.info Credits Authors Copy Editors Alex Belotserkovskiy Pranjali
    [Show full text]
  • End to End Azure and Xamarin.Forms
    End-to-End Native Mobile Apps with C# and Xamarin James Montemagno Developer Evangelist, Xamarin [email protected] motzcod.es @JamesMontemagno DESIGN – DEVELOP - INTEGRATE TEST MONITOR LEARN iOS C# UI Android C# UI Windows C# UI Shared C# Mobile Shared C# codebase • 100% native API access • High performance Microsoft.Phone Microsoft.Networking Windows.Storage Windows.Foundation Microsoft.Devices System.Net System System.IO System.Linq System.Xml System.Data System.Windows System.Numerics System.Core System.ServiceModel MapKit UIKit iBeacon CoreGraphics CoreMotion System.Net System System.IO System.Linq System.Xml System.Data System.Windows System.Numerics System.Core System.ServiceModel Text-to-speech ActionBar Printing Framework Renderscript NFC System.Net System System.IO System.Linq System.Xml System.Data System.Windows System.Numerics System.Core System.ServiceModel .NET IL + JIT Compile C# and Link .APK Runs Natively Bindings Xamarin.iOS does full Ahead Of Time Xamarin.Android takes advantage of (AOT) compilation to produce an ARM Just In Time (JIT) compilation on the binary for Apple’s App Store. Android device. • • • • • ✓Always Up-to-Date • • • • • • iOS C# UI Android C# UI Windows C# UI Shared UI Code Shared C# Backend Shared C# Backend Traditional Xamarin With Xamarin.Forms: Approach More code-sharing, all native ✓ 40+ Pages, layouts, and controls (Build from code behind or XAML) Shared UI Code ✓ Two-way data binding ✓ Navigation Shared C# Backend ✓ Animation API ✓ Dependency Service ✓ Messaging Center Pages Content MasterDetail
    [Show full text]
  • Microsoft Mobility and Security for Enterprise Architects
    Microsoft Mobility What IT architects need to know about mobility with Microsoft cloud services and Security for and platforms Enterprise Architects This topic is 1 of 4 in a series 1 2 3 4 Enable productivity and collaboration from anywhere while protecting data and applications Microsoft provides broad support for mobile productivity with support for applications and rich features for controlling access to your organization s assets. Microsoft mobile apps for business Developing your own mobile apps Microsoft produces a number of business class mobile apps for Use the Mobile Apps feature of Azure App Service to build engaging productivity. See page two for featured applications. iOS, Android, and Windows apps or cross-platform Xamarin or Cordova (Phonegap) apps for your customers and business. With an Office 365 for business subscription, you get mobile apps that help you get more done from your favorite device while keeping your Broadcast push with customer data secured. Use Intune Mobile Application Management to apply segmentation additional security when using these mobile applications. Enterprise single sign-on with Active Directory Autoscale to support millions of devices Skype for Business, Yammer, OneNote, and more apps for business Apps can work offline and sync are also available. Get the full list of apps and learn how to set them Social integration with Facebook, up on your devices. Twitter, Google Dynamics CRM also includes apps for phones and tablets. Cloud App Security for SaaS apps Mobile access to on-prem applications Microsoft Cloud App Security is a comprehensive service that provides Microsoft Azure Active Directory Application Proxy lets you publish deeper visibility, comprehensive controls, and improved protection for applications, such as web-based apps inside your private network and your cloud applications.
    [Show full text]
  • Licensing Information User Manual Release 9.1 F13415-01
    Oracle® Hospitality Cruise Fleet Management Licensing Information User Manual Release 9.1 F13415-01 August 2019 LICENSING INFORMATION USER MANUAL Oracle® Hospitality Fleet Management Licensing Information User Manual Version 9.1 Copyright © 2004, 2019, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error- free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.
    [Show full text]
  • Seeing the Sky Visualization & Astronomers
    Seeing the Sky Visualization & Astronomers Alyssa A. Goodman Harvard Smithsonian Center for Astrophysics & Radcliffe Institute for Advanced Study @aagie WorldWide Telescope Gm1m2 F= gluemultidimensional data exploration R2 Cognition “Paper of the Future” Language* Data Pictures Communication *“Language” includes words & math Why Galileo is my Hero Explore-Explain-Explore Notes for & re-productions of Siderius Nuncius 1610 WorldWide Telescope Galileo’s New Order, A WorldWide Telescope Tour by Goodman, Wong & Udomprasert 2010 WWT Software Wong (inventor, MS Research), Fay (architect, MS Reseearch), et al., now open source, hosted by AAS, Phil Rosenfield, Director see wwtambassadors.org for more on WWT Outreach WorldWide Telescope Galileo’s New Order, A WorldWide Telescope Tour by Goodman, Wong & Udomprasert 2010 WWT Software Wong (inventor, MS Research), Fay (architect, MS Reseearch), et al., now open source, hosted by AAS, Phil Rosenfield, Director see wwtambassadors.org for more on WWT Outreach Cognition “Paper of the Future” Language* Data Pictures Communication *“Language” includes words & math enabled by d3.js (javascript) outputs d3po Cognition Communication [demo] [video] Many thanks to Alberto Pepe, Josh Peek, Chris Beaumont, Tom Robitaille, Adrian Price-Whelan, Elizabeth Newton, Michelle Borkin & Matteo Cantiello for making this posible. 1610 4 Centuries from Galileo to Galileo 1665 1895 2009 2015 WorldWide Telescope Gm1m2 F= gluemultidimensional data exploration R2 WorldWide Telescope gluemultidimensional data exploration WorldWide Telescope gluemultidimensional data exploration Data, Dimensions, Display 1D: Columns = “Spectra”, “SEDs” or “Time Series” 2D: Faces or Slices = “Images” 3D: Volumes = “3D Renderings”, “2D Movies” 4D:4D Time Series of Volumes = “3D Movies” Data, Dimensions, Display Spectral Line Observations Loss of 1 dimension Mountain Range No loss of information Data, Dimensions, Display mm peak (Enoch et al.
    [Show full text]
  • Software License Agreement (EULA)
    Third-party Computer Software AutoVu™ ALPR cameras • angular-animate (https://docs.angularjs.org/api/ngAnimate) licensed under the terms of the MIT License (https://github.com/angular/angular.js/blob/master/LICENSE). © 2010-2016 Google, Inc. http://angularjs.org • angular-base64 (https://github.com/ninjatronic/angular-base64) licensed under the terms of the MIT License (https://github.com/ninjatronic/angular-base64/blob/master/LICENSE). © 2010 Nick Galbreath © 2013 Pete Martin • angular-translate (https://github.com/angular-translate/angular-translate) licensed under the terms of the MIT License (https://github.com/angular-translate/angular-translate/blob/master/LICENSE). © 2014 [email protected] • angular-translate-handler-log (https://github.com/angular-translate/bower-angular-translate-handler-log) licensed under the terms of the MIT License (https://github.com/angular-translate/angular-translate/blob/master/LICENSE). © 2014 [email protected] • angular-translate-loader-static-files (https://github.com/angular-translate/bower-angular-translate-loader-static-files) licensed under the terms of the MIT License (https://github.com/angular-translate/angular-translate/blob/master/LICENSE). © 2014 [email protected] • Angular Google Maps (http://angular-ui.github.io/angular-google-maps/#!/) licensed under the terms of the MIT License (https://opensource.org/licenses/MIT). © 2013-2016 angular-google-maps • AngularJS (http://angularjs.org/) licensed under the terms of the MIT License (https://github.com/angular/angular.js/blob/master/LICENSE). © 2010-2016 Google, Inc. http://angularjs.org • AngularUI Bootstrap (http://angular-ui.github.io/bootstrap/) licensed under the terms of the MIT License (https://github.com/angular- ui/bootstrap/blob/master/LICENSE).
    [Show full text]
  • How Github Secures Open Source Software
    How GitHub secures open source software Learn how GitHub works to protect you as you use, contribute to, and build on open source. HOW GITHUB SECURES OPEN SOURCE SOFTWARE PAGE — 1 That’s why we’ve built tools and processes that allow GitHub’s role in securing organizations and open source maintainers to code securely throughout the entire software development open source software lifecycle. Taking security and shifting it to the left allows organizations and projects to prevent errors and failures Open source software is everywhere, before a security incident happens. powering the languages, frameworks, and GitHub works hard to secure our community and applications your team uses every day. the open source software you use, build on, and contribute to. Through features, services, and security A study conducted by the Synopsys Center for Open initiatives, we provide the millions of open source Source Research and Innovation found that enterprise projects on GitHub—and the businesses that rely on software is now comprised of more than 90 percent them—with best practices to learn and leverage across open source code—and businesses are taking notice. their workflows. The State of Enterprise Open Source study by Red Hat confirmed that “95 percent of respondents say open source is strategically important” for organizations. Making code widely available has changed how Making open source software is built, with more reuse of code and complex more secure dependencies—but not without introducing security and compliance concerns. Open source projects, like all software, can have vulnerabilities. They can even be GitHub Advisory Database, vulnerable the target of malicious actors who may try to use open dependency alerts, and Dependabot source code to introduce vulnerabilities downstream, attacking the software supply chain.
    [Show full text]
  • Tablets in the Enterprise: Comparing the Total Cost of Ownership
    TABLETS IN THE ENTERPRISE: COMPARING THE TOTAL COST OF OWNERSHIP EXECUTIVE SUMMARY Windows 8 tablets provide a PC experience, which for many workers is essential to maintaining productivity. With Windows 8, users can run familiar desktop applications, maintaining productivity without having to find new ways to carry out their tasks. They can read, edit, and print their emails and Office documents—tasks that can be a challenge on other tablets. In addition to these productivity advantages, Intel Core i5 processor and Windows 8 tablets can provide enterprises with total cost of ownership (TCO) savings of up to 18 percent compared to other tablets. We expect additional TCO savings with Intel Core vPro™ processor-based tablets due to their additional manageability capabilities. We estimate tablets with Intel Architecture and Windows 8 will have lower TCO than other tablets, primarily due to the following: reduced software costs lower management costs improved end-user productivity JANUARY 2013 A PRINCIPLED TECHNOLOGIES WHITE PAPER Commissioned by Intel Corp. TOTAL COST OF OWNERSHIP OF TABLETS IN THE ENTERPRISE In this paper, we first present a TCO analysis for a hypothetical enterprise considering four major categories of tablets for their employees: Microsoft Windows 8 tablets, Windows RT tablets, Android tablets, and Apple iPads. Because the ranges of prices and capabilities differ among models within each category, we selected a single representative model for each. Following this analysis, we discuss the dominant issues in enterprise tablet computing as of this writing. We base our TCO analysis on the primary assumptions in Figure 1. Tablets must be nine inches or larger with 64 GB of storage and Wi-Fi support.
    [Show full text]
  • Surface Pro 3 Fact Sheet May 2014
    Surface Pro 3 Fact sheet May 2014 Meet Surface Pro 3, the tablet that can replace your laptop. Wrapped in magnesium and loaded with a 12-inch ClearType Full HD display, 4th-generation Intel® Core™ processor and up to 8 GB of RAM in a sleek frame — just 0.36 inches thin and 1.76 pounds — with up to nine hours of Web-browsing battery life, Surface Pro 3 has all the power, performance and mobility of a laptop in an incredibly lightweight, versatile form. The thinnest and lightest member of the Surface Pro family, Surface Pro 3 features a large and beautiful 2160x1440 2K color-calibrated screen and 3:2 aspect ratio with multitouch input, so you can swipe, pinch and drag whenever you need. The improved optional Surface Pro Type Cover and more adjustable, continuous kickstand will transform your device experience from tablet to laptop in a snap. Surface Pro Type Cover features a double-fold hinge enabling you to magnetically lock it to the display’s lower bezel, keeping everything steady so you can work just as comfortably on your lap as you do at your desk. With a full-size USB 3.0 port, microSD card reader and Mini DisplayPort, you can quickly transfer files and easily connect peripherals like external displays. And with the optional Surface Ethernet Adapter, you can instantly connect your Surface to a wired Ethernet network with transfer rates of up to 1 Gbps1. The custom Surface Pen, crafted with a solid, polished aluminum finish, was designed to look and feel like an actual fountain pen to give you a natural writing experience.
    [Show full text]
  • Surface Pro X Fact Sheet October 2020
    Surface Pro X Fact Sheet October 2020 Meet the future of always-connected productivity. Wherever life leads you, be ready for anything with Surface Pro X. With blazing-fast Gigabit LTE connectivity,1 our thinnest Surface Pro features two USB-C® ports and a stunning, virtually edge-to-edge 13” touchscreen, plus choice of a new platinum finish and keyboard colors.2 What’s new? • Surface Pro X introduces the Microsoft SQ®2, the second generation of our custom chip on our premium configurations, building on the innovation of the Microsoft SQ® 1, delivering even more multi-tasking power for true connected productivity. • Surface Pro X is now available in a new Platinum finish in addition to Matte Black, and Surface Pro X Keyboards are now available in three new colors2: Ice Blue, Poppy Red, and Platinum, in addition to Black. • In addition to refreshing our top-end SKUs, additional software improvements will benefit all customers of Surface Pro X: o Increased battery life that now delivers up to 15 hours of typical usage.3 o Increasing number of key app partners are embracing Windows on ARM and taking advantage of the power and performance benefits of Microsoft SQ® 1 and Microsoft SQ® 2 and bringing new experiences for all Surface Pro X customers – current and new, including new Microsoft 365 applications4 optimized for Windows on ARM such as Microsoft Edge and Microsoft Teams which provides improved performance and reliability. o For developers, Visual Studio Code4 has updated and optimized for Windows on ARM. The new VS Code, paired with WSL2 and the Windows Terminal make Surface Pro X the ideal modern dev box.
    [Show full text]