Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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

Parameter:

  • callback (function): (OPTIONAL) A callback function to execute. It will be passed an object with the following attributes automatically:

    • pan (number): The pan (ie, left or right shift) of where the user is facing in the current sphere

    • tilt (number): The tilt (ie, up or down shift) of where the user is facing in the current sphere

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

Code Sample

  • No labels