Exam 10: Programming for Mobile Devices and Touchscreens
A device's ____ detects its orientation in space.
A
In the Google Maps API, you specify coordinates with the ____ constructor.
D
Explain why you need to be able to distinguish between app and device interaction when interpreting touch events.
While users can interact via touch with an app, they also use touch to perform browser and device interactions, known as gestures , for activities such as scrolling the page and viewing device notifications. For instance, in addition to executing code in response to a touchmove event that you specify, the device's operating system may also interpret the touchmove event as the user interacting with the interface to scroll the page. As you can imagine, users would find such unpredictable results frustrating.
To ensure that the operating system interface does not respond to events generated when users interact with an app, you can use the preventDefault( method. By adding the preventDefault( method within event handler code, you prevent touch actions on specific elements from also triggering interface gestures.
__________ is the process of making it clear to users what information your app wants to collect from them and how you intend to use it.
How can you make changes or enhancements to an app that uses a minified file?
Large-volume users of the Google Maps API need an API __________, which is a string of characters that you incorporate into any request your code makes to Google to verify that your use is licensed.
To disable interface gestures in response to pointer events, you change the value off the ____ property.
Which array contains coordinates of all touches currently on the screen?
Which of the following is NOT removed when minifying a file?
The touchstart event is roughly analogous to the ____ event.
By adding the __________ method within event handler code, you prevent touch actions on specific elements from also triggering interface gestures.
Explain what the Device Orientation API does and provide an example of how it could be used.
What is the difference between a synchronous callback and an asynchronous callback?
In the Google Maps API, the ____ constructor creates a map object.
Which type of events aim to handle input from a mouse, finger, or stylus with each event?
On a touchscreen device without a mouse, most browsers fire the click event when a user touches the screen.
Explain the difference in how you reference coordinates between mouse events and touch events.
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)