Presentation is loading. Please wait.

Presentation is loading. Please wait.

Advanced Windows 8 App Development Using JavaScript Jump Start 70-482 Exam Prep M2: Hardware and Sensors Michael Palermo Microsoft Technical Evangelist.

Similar presentations


Presentation on theme: "Advanced Windows 8 App Development Using JavaScript Jump Start 70-482 Exam Prep M2: Hardware and Sensors Michael Palermo Microsoft Technical Evangelist."— Presentation transcript:

1 Advanced Windows 8 App Development Using JavaScript Jump Start 70-482 Exam Prep M2: Hardware and Sensors Michael Palermo Microsoft Technical Evangelist Jeremy Foster Microsoft Developer Evangelist

2 Jump Start Target Agenda Advanced Windows 8 Apps Using JavaScript Module 1: Background Tasks and Components Module 2: Hardware and Sensors Module 3: Printing and PlayTo MEAL BREAK Module 4: Animations, Custom Controls, and Globalization Module 5: Data, Files, and Encryption Module 6: Deployment

3 Module Agenda Capture media with the camera and microphone Get data from sensors Enumerate and discover device capabilities ˃ ˃

4 Capturing from camera The easy way… CameraCaptureUI The powerful way… MediaCapture

5 CODESHOW: MEDIA CAPTURE demo

6 Module Agenda Capture media with the camera and microphone Get data from sensors Enumerate and discover device capabilities ˃ ˃

7 Sensors

8 Light sensor //get access to the default light sensor var lightSensor = Windows.Devices.Sensors.LightSensor.getDefault(); //implement the readingchanged event lightSensor.onreadingchanged = function (e) { e.reading.illuminanceInLux; };

9 Compass //get access to the default compass var compass = Windows.Devices.Sensors.Compass.getDefault(); //implement the readingchanged event compass.onreadingchanged = function (e) { e.reading.headingTrueNorth; };

10 Accelerometer //get access to the default accelerometer var accelerometer = Windows.Devices.Sensors.Accelerometer.getDefault(); //implement the readingchanged event accelerometer.onreadingchanged = function (e) { e.reading.accelerationX; e.reading.accelerationY; e.reading.accelerationZ; };

11 Accelerometer - shake //get access to the default accelerometer var accelerometer = Windows.Devices.Sensors.Accelerometer.getDefault(); //implement the readingchanged event accelerometer.onshaken = function (e) { //TODO: rattle and roll };

12 CODESHOW: GEOLOCATION demo

13 Module Agenda Capture media with the camera and microphone Get data from sensors Enumerate and discover device capabilities ˃ ˃

14 Enumerating devices Windows.Devices.Enumeration namespace

15 CODESHOW: DEVICES demo

16 Discovering device capabilities Geolocation Removable storage Accelerometer

17 CODESHOW: DISCOVER demo

18 Summary Capture media with the camera and microphone Get data from sensors Enumerate and discover device capabilities

19


Download ppt "Advanced Windows 8 App Development Using JavaScript Jump Start 70-482 Exam Prep M2: Hardware and Sensors Michael Palermo Microsoft Technical Evangelist."

Similar presentations


Ads by Google