Upload
craig-dunn
View
182
Download
3
Tags:
Embed Size (px)
Citation preview
Wearables with C#• About Xamarin
• Microsoft Band
• Android Wear
• Apple Watch
Samples https://github.com/conceptdev/xamarin-‐samples/watch-‐and-‐wear
Xamarin•C# & .NET on iOS & Androidand Windows, of course
•Share code across all platforms
•Build with Xamarin Studio or Visual Studio
WindowsAndroidiOS
Shared C# Application Code
C# UI C# + XML C# + XAML
Database, Web Services, App Logic
Xamarin Studio
Visual Studio
http://xamarin.com/
Xamarin.Forms•C# & .NET on iOS & Androidand Windows, of course
•Share code across all platforms
•Build with Xamarin Studio or Visual Studio
•Share user interface code in C# or XAML too with Xamarin.Forms
WindowsAndroidiOS
Shared C# Application Code
Database, Web Services, App Logic
Xamarin Studio
Visual Studio
Shared C# or XAML UI
WindowsAndroidiOS
Shared C# Application Code
C# UI C# UI C# UI
Database, Web Services, App Logic
http://xamarin.com/formssh
ared
UI
Xamarin + wearables•Xamarin’s native approach supports each platform’s wearable devices
•Each platform/device has a different app architecture and capabilities
•All based on Bluetooth LE and a “paired” phone WindowsAndroidiOS
C#
Database, Web Services, App Logic
Microsoft Band•No code runs on device(﴾but phone can generate notifications)﴿
•No user-‐input accepted from device
•Sensor data can be streamed to phone app
•No “app” is deployed to device,just exists as phone app
Windows Phone App
C# code & XAML UI
notifications & customizations
sensor dataMicrosoft Band SDK
Microsoft Band + Xamarin•No code runs on device(﴾but phone can generate notifications)﴿
•No user-‐input accepted from device
•Sensor data can be streamed to phone app
•No “app” is deployed to device,just exists as phone app
Windows Phone App
C# code & XAML UI
notifications & customizations
sensor data
Xamarin.Android App
C# code & UI
Xamarin Band SDK
Component
Microsoft Band SDK
Xamarin.iOS App
C# code & UI
Xamarin Band SDK
Component
Microsoft Band links
@mattleibow
@irisclasson http://irisclasson.com
http://winsupersite.com/microsoft-‐band/microsoft-‐band-‐apps-‐platform
http://www.windowsphone.com/en-‐us/store/search?q=microsoft+band
https://components.xamarin.com/view/microsoft-‐band-‐sdk
Android Wear•Code & UI runs on device(full Android app)
•User interacts with app on device
•Sensors vary by manufacturer, can be accessed in code
•Communicate with phone app via APIs
•Wear app delivered inside phone app
Android Wear app
Android App
C# code & UI
deploy
C# code & UI
MessageAPI DataAPI
Android Wear links@jamesmontemagno
@jeremie_laval
https://www.nuget.org/packages/Xamarin.Android.Wear/
https://developer.xamarin.com/samples/android/Android%20Wear/
http://www.slideshare.net/JamesMontemagno/developing-‐your-‐first-‐android-‐wear-‐app
http://developer.xamarin.com/guides/android/wear
Apple Watch•No code runs on device (﴾UI on device, remote code execution on phone)﴿
•User interacts with app on device
•Sensors are not accessible
•Watch app delivered inside phone app
iOS App
iOS Watch Kit Extension
Watch Kit app
Watch C# codeUI
iPhone app C# code & UI
deploy
interactions
Apple Watch links
http://watchaware.com/watch-‐apps
http://www.macrumors.com/2015/04/22/apple-‐watch-‐app-‐screenshots/
http://9to5mac.com/2015/04/22/gaming-‐apple-‐watch-‐2048-‐modern-‐combat-‐5-‐real-‐racing-‐fifa-‐screenshots/
http://developer.xamarin.com/guides/ios/watch
Microsoft Band Android Wear Apple Watch
App running on device
No Yes No (UI elements are loaded)
User input No Yes, touch and voice
Yes, touch and voice
Sensors Yes Yes (depending on device)
No (apps cannot access)
Build with C# Yes Yes Yes
Phone req’s Bluetooth LE (Windows, iOS, Android)
Android 4.3 (Bluetooth LE)
iOS 8.2
Summary
Questions?http://developer.xamarin.com/guides/ios/watch http://developer.xamarin.com/guides/android/wear https://components.xamarin.com/view/microsoft-‐band-‐sdk
https://github.com/conceptdev/xamarin-‐samples/watch-‐and-‐wearCraig Dunn
[email protected]@conceptdev