Which code snippets should you include in Target 1 and Target 2 to complete the code?

DRAG DROP
You are developing a Windows Store app that uses a light sensor to detect and respond to light
changes. An object named lightSensor is an instance of the sensor service.
The light sensor must detect changes once per second. If the sensor is unable to record as fast as
once per second, then it must use the fastest interval possible.
You need to ensure that the app meets the requirements. You have the following code:

Which code snippets should you include in Target 1 and Target 2 to complete the code? (To answer,
drag the appropriate code snippets to the correct targets in the answer area. Each code snippet may
be used once, more than once, or not at all. You may need to drag the split bar between panes or
scroll to view content.)

DRAG DROP
You are developing a Windows Store app that uses a light sensor to detect and respond to light
changes. An object named lightSensor is an instance of the sensor service.
The light sensor must detect changes once per second. If the sensor is unable to record as fast as
once per second, then it must use the fastest interval possible.
You need to ensure that the app meets the requirements. You have the following code:

Which code snippets should you include in Target 1 and Target 2 to complete the code? (To answer,
drag the appropriate code snippets to the correct targets in the answer area. Each code snippet may
be used once, more than once, or not at all. You may need to drag the split bar between panes or
scroll to view content.)

Answer:

Explanation:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.sensors.lightsensor.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *