Transcript
Page 1: SharePoint Mobile App Development with Xmarin

SharePoint Mobile App Development with Xamarin and VS2013ByHector Luciano Jr

Page 2: SharePoint Mobile App Development with Xmarin

Agenda

IntroductionAbout BlumShapiroQuick Update on Cross Platform Mobile Dev

LandscapeIntro into XamarinDemo C# IPhone App SharePoint/Office 365Demo Shared UI Code Questions

Page 3: SharePoint Mobile App Development with Xmarin

Introduction

SharePoint Developer Mobile App Developer Certifications

MCSD Web Applications MCPD SharePoint Development, MSCE and Mobile (In Progress)

Hobbies Cross Fit Chess Player

Contact [email protected] @hluciano Hlucianojr.wordpress.com

Demo Github https://github.com/hlucianojr/

xspservice.demo

Page 4: SharePoint Mobile App Development with Xmarin

4

About: BlumShapiro

The largest regional, accounting, tax and business consulting firm based in New England Established in 1980 as a small accounting firm in West Hartford 350 professionals in Connecticut, Massachusetts and Rhode Island Vision to be the dominant professional services firm based in New

England▪ Organic growth with a large emphasis on consulting▪ Strategic acquisition of firms sharing our values▪ Best Place to Work▪ Commitment to Community, diversity and stewardship

With this strategy and geographic focus we are able to attract outstanding talent with shared values.

Page 5: SharePoint Mobile App Development with Xmarin

About: BlumShapiro Consulting Services

Page 6: SharePoint Mobile App Development with Xmarin

6

About: BlumShapiro Experience

Representative Clients

Page 7: SharePoint Mobile App Development with Xmarin

Today’s Cross Platform Mobile Landscape

Page 8: SharePoint Mobile App Development with Xmarin

Newest Cross Platform Mobile Landscape

Telerik Platform Pure HTML5 Hybrid Apps for

▪ iOS▪ Android▪ Windows Phone 8

Multi-Device Hybrid Apps Integration into Visual Studio Build Apps for

▪ iOS▪ Android▪ Windows(Some Devices)

Page 9: SharePoint Mobile App Development with Xmarin

SharePoint C# Developer??????

Page 10: SharePoint Mobile App Development with Xmarin

SharePoint Developer

Tools Visual Studio 2010, 2012, 2013 SharePoint Designer

Programing Languages Asp.Net (C#) C# JavaScript

Page 11: SharePoint Mobile App Development with Xmarin

What is Xamarin for Visual Studio

Page 12: SharePoint Mobile App Development with Xmarin

Demo Xamarin for Visual Studio

Demo

Page 13: SharePoint Mobile App Development with Xmarin

Xamarin Products

Xamarin for Visual Studio

Xamarin Studio(Mac and,PC)

Component Store

Xamarin Form

Page 14: SharePoint Mobile App Development with Xmarin

How does it work

Page 15: SharePoint Mobile App Development with Xmarin

How does it work

Page 16: SharePoint Mobile App Development with Xmarin

Xamarin Templates

IOS TEMPLATES

Page 17: SharePoint Mobile App Development with Xmarin

Xamarin iOS Designer

Tool B

ox

Pro

pertie

s

Page 18: SharePoint Mobile App Development with Xmarin

Xamarin iOS Project Structure

Storyboard File

ControllerApp Delegate

Page 19: SharePoint Mobile App Development with Xmarin

iOS/Android/Win8 Code Sharing Architecture

Page 20: SharePoint Mobile App Development with Xmarin

Demo iOS Project

Demo

Page 21: SharePoint Mobile App Development with Xmarin

What is Model View Controller

Model View Controller Pattern Model: POCO, DTO, object hold

application data. View: Visual presentation of the

model. Controller: mediator between

model and view. iOS MVC Classes

UIViewController: the controller access to the Model/Models

UIView: the view gets display to the user

DataSource: collection of Models or Model

ViewModel

Controller

Page 22: SharePoint Mobile App Development with Xmarin

What is Xamarin Forms

40+ Pages, Layouts, and Controls

Build from code behind or XAML

Two-way Data Binding Navigation Animation API Dependency Service Messaging Center

Page 23: SharePoint Mobile App Development with Xmarin

Xamarin Portable (PCL) Architecture

Page 24: SharePoint Mobile App Development with Xmarin

Xamarin Portable Support

Page 25: SharePoint Mobile App Development with Xmarin

Microsoft NuGet Libraries

Async for .Net Framework Microsoft BCL Portability Pack 1.1.9

Page 26: SharePoint Mobile App Development with Xmarin

Portable Library Windows Support

Page 27: SharePoint Mobile App Development with Xmarin

Xamarin Plugin by James Montemagno

Check out: https://github.com/jamesmontemagno/Xamarin.Plugins

Battery Status: Get battery level, how it is

getting charge, and events. Connectivity: See if device is connected to the

internet and through what connection type. Contacts: Currently in Alpha Device Information: Base information about

each device such as OS and version. Extended Maps: Launch navigation directions

in default map app on each OS Geolocator: Currently in Alpha Media: Take or pick photos/videos Settings: Fully cross platform settings for your

application. Text To Speech: Turn your text into a vocal

symphony on mobile devices. Vibrate: Make that device rumble!

Page 28: SharePoint Mobile App Development with Xmarin

Office 365 APIs Platform

Page 29: SharePoint Mobile App Development with Xmarin

Office 365 Platform NuGet Packages

Page 30: SharePoint Mobile App Development with Xmarin

Office 365 Discovery Service API

Determine your app capabilities Mail Calendar Contacts Files Sites

Determine Resource Id and Endpoint Uri of Office 365 Service API.

Page 31: SharePoint Mobile App Development with Xmarin

What is MVVM?

What is Model View ViewModel ViewModel: describes integration

with View via properties, commands and observable objects

View: User interface, XAML markup or Code

Model: refers to entities, objects, data sources.

Benefits Loosely coupled architecture Testable code.

Requirement Observable Collection Command Pattern Binding

ViewModel

View Model

Binding Bind

ing

Page 32: SharePoint Mobile App Development with Xmarin

Xamarin Layouts

Stack Absolute Relative Grid ContentView ScrollView Frame

Page 33: SharePoint Mobile App Development with Xmarin

Xamarin Form Pages

Content MasterDetail Navigation Tabbed Carousel

Page 34: SharePoint Mobile App Development with Xmarin

UI Code Sharing Architecture

Page 35: SharePoint Mobile App Development with Xmarin

Xamarin Controls

ActivityIndicator

BoxView Button DatePicker Editor

Entry Image Label ListView Map

OpenGLView Picker ProgressBar SearchBar Slider

Stepper TableView TimePicker WebView EntryCell

ImageCell SwitchCell TextCell ViewCell

Page 36: SharePoint Mobile App Development with Xmarin

Demo Shared UI Code Cross Platform

Demo

Page 37: SharePoint Mobile App Development with Xmarin

Xamarin Test Cloud

Page 38: SharePoint Mobile App Development with Xmarin

Xamarin – Your Complete Mobile Solution

DESIGN – DEVELOP - INTEGRATE

TEST MONITOR

LEARN

Page 39: SharePoint Mobile App Development with Xmarin

Xamarin Test Cloud Devices

Page 40: SharePoint Mobile App Development with Xmarin

Xamarin Insights

Integrated with your App Real-time Monitoring See crashes and issues in on

spot Captures Usages Others

Page 41: SharePoint Mobile App Development with Xmarin

Development Environment

• MacBook Pro– CPU: 2.2 GHz Intel Core i7– Memory: 16GB

• Installed Software– Maverick OS X 10.9.4– Xamarin Studio 5.2(Build 386)– Parallel Desktop

• Dell Latitude – CPU: 2.70 GHz Intel Core i7– Memory: 8GB

• Installed Software– Windows 7 PS1– Visual Studio 2013– Xamarin Studio 5.2(Build 386)

Page 42: SharePoint Mobile App Development with Xmarin

Why do you need a MacBook

Compilation to Native machine code

App Certificates Code-Signing App Deployment

Page 43: SharePoint Mobile App Development with Xmarin

Wi-Fi(Static IP)

Accessing SharePoint via Wi-Fi

Ethernet(Static IP)

Development Network Setup

Accessing Xamarin Host

Page 44: SharePoint Mobile App Development with Xmarin

Mac as Build Machine

Page 45: SharePoint Mobile App Development with Xmarin

What would you like to see

SharePoint on Android Wear, Glass? SharePoint on Amazon Fire? SharePoint on Yosemite? Other?

Page 46: SharePoint Mobile App Development with Xmarin

Xamarin Pricing (Not Free)

Page 47: SharePoint Mobile App Development with Xmarin

The End

Page 48: SharePoint Mobile App Development with Xmarin

What is norm?

Page 49: SharePoint Mobile App Development with Xmarin

How to verify Xamarin SDK versions.

IN WINDOWS IN MAC

Page 50: SharePoint Mobile App Development with Xmarin

Android SDK Manager

Page 51: SharePoint Mobile App Development with Xmarin

Pen and Paper Brainstorming Apps

Page 52: SharePoint Mobile App Development with Xmarin

Hobby


Recommended