Chapter 10 Flashcards
Pointer events are supported only by certain versions of which browser?
Microsoft Internet Explorer
The object returned by the getCurrentPosition() method of the Geolocation API contains a single property named ____.
coords
Which of the following is NOT removed when minifying a file?
spaces
To request a user’s position a single time, you use the ____ method of the Geolocation API.
getCurrentPosition()
A device’s ____ detects changes in speed.
accelerometer
You access methods of the Geolocation API using the geolocation property of the ____ object.
Navigator
To disable interface gestures in response to pointer events, you change the value off the ____ property.
msTouchAction
Which of the following is a touch event?
touchend
The success and fail arguments of the getCurrentPosition() method, which are executable code, are examples of ____.
callbacks
Devices that allow for multiple touches on the screen at the same time
multitouch
Provides user’s latitude and longitude coordinates
Geolocation API
A specification created by Microsoft for Windows Phone and Windows 8
pointer events
Reports charge level of device battery
Battery Status API
Provides access to device orientation and changes in orientation
Device Orientation API
A set of events created by Apple for iOS
touch events
Provides access to device camera, microphone, and/or screen
WebRTC API
A browser or device interaction performed using touch, such as for scrolling the page
gesture
A pointing device that looks like a pencil and allows for precise touch input on a touchscreen
stylus
An argument that contains or references executable code
callback
Which of the following is a pointer event?
pointerdown
To continually monitor a user’s position, you use the ____ method of the Geolocation API.
watchPosition()
Which type of events focus on responding to finger touches on a touchscreen?
Touch events
The touchstart event is roughly analogous to the ____ event.
mousedown
In the Google Maps API, you specify coordinates with the ____ constructor.
LatLng()
Which array contains coordinates of all touches currently on the screen?
touches
A device’s ____ detects its orientation in space.
gyroscope
In the Google Maps API, the ____ constructor creates a map object.
Map()
Which of the following is a mouse event?
click
Which type of events aim to handle input from a mouse, finger, or stylus with each event?
Pointer events
Which event is fired when a user moves a finger off the screen or outside of an object’s containing element?
touchcancel