Jordan Knight Developing for the Microsoft Band MOB342.

Post on 18-Jan-2016

213 views 0 download

Transcript of Jordan Knight Developing for the Microsoft Band MOB342.

Spark the future.

Jordan Knight

Developing for the Microsoft Band

MOB342

Jordan KnightXamling jakkaj@xamling.net@jakkajYou are in #MOB342

One little IoT device

Bristling with sensors… that you can access!Heart rate UVAccelerometer & gyroscopeSkin temperatureCalorie countBarometer & altimeter+more

Home to your appCreate interactive experiencesApp tilesApp notificationsHaptic notificationsVarious personalisation options

Multi-platformNative SDKs. Native SDKs for everyone.iOSAndroidWindowsXamarin Component (iOS, Android and Windows)

SDK & documentationGetting started – things to knowConcentrating on Windows for this talkSee documentation for more info on Windows and other platforms

https://developer.microsoftband.com/

http://tinyurl.com/bandsdk (PDF)

Code SamplesAvailable on GitHub

https://github.com/jakkaj/TechPresentations

File->NewGetting started is simpleEdit the Package.appxmanifest (edit code)Add the Proximity capabilityInstall the Nuget packageThat’s it!(oh, and you’ll need a Band!)

Connecting to the Band

Jordan Knight

More on sensorsSection 5.3Pages 21 to 26 of the documentation for all the values

http://tinyurl.com/bandsdk (PDF)

Surface your appCreate and customise tilesCreate tiles with custom icons Badge “count” notificationsMessagesDialogs

Create a custom tile

Jordan Knight

TilesSection 6.1Pages 29 to 31 of the documentation for details on creating tiles

http://tinyurl.com/bandsdk (PDF)

Adding pagesCustom content from your appCan have up to 8 pagesSimple layout language & familiar controlsTextBlock, Icons, Barcodes, FlowPanelButtons & events

Add a layoutThen add a page that uses itCreate up to 5 layoutsCreate up to 8 pages from those 5 layouts

Creating layouts and pages

Jordan Knight

Pages and layoutsSection 8Pages 47 to 50 of the documentation for details on codePages 35 to 42 for overviews and info

http://tinyurl.com/bandsdk (PDF)

Show messagesDialogs and messages are differentMessages persist and can be read laterDialogs do not persistBoth are super easy

Showing messages

Jordan Knight

Dialogs and messagesSection 7Pages 32 to 34 of the documentation for details on code

http://tinyurl.com/bandsdk (PDF)

Buttons and eventsIt’s not all a one way streetCreate a new layout that has a buttonCreate a page that uses that layoutConnect the event

Pressing buttons

Jordan Knight

Dialogs and messagesSection 9Pages 51 to 57 of the documentation for details on code

http://tinyurl.com/bandsdk (PDF)

It has more thingsIf time were to permitHaptics – send various taps and buzzesPersonalisation – customise the me image and colorsWeb tiles – use feeds as a tile source

SDK & documentationDownload and play now(but only run once you have your band!)

https://github.com/jakkaj/TechPresentations

https://developer.microsoftband.com/

http://tinyurl.com/bandsdk (PDF)

SDK & documentationAzureYou can get a trial account

We used:

Notification HubsApp service

IFTTTIt’s Free!https://ifttt.com/

We used:

Belkin WeMo motion sensor

Jordan KnightXamling jakkaj@xamling.net@jakkajYou were in #MOB342

Thanks!

Complete your session evaluation on My Ignite for your chance to win one of many daily prizes.

Continue your Ignite learning pathVisit Microsoft Virtual Academy for free online training visit https://www.microsoftvirtualacademy.com

Visit Channel 9 to access a wide range of Microsoft training and event recordings https://channel9.msdn.com/

Head to the TechNet Eval Centre to download trials of the latest

Microsoft products http://Microsoft.com/en-us/evalcenter/

© 2015 Microsoft Corporation. All rights reserved.Microsoft, Windows and other product names are or may be registered

trademarks and/or trademarks in the U.S. and/or other countries.MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,

AS TO THE INFORMATION IN THIS PRESENTATION.