Gets data about where the user is looking, passes it to the optional callback function (if provided), and returns it.

Parameter:

Returns: A promise that resolves to the same object that is passed to the callback.

Code Sample