arkit
arkit

Reputation: 392

Add touch events to VrPanoramaView class of google cardboard SDK for android

I am working on a panorama app. I am using VrPanoramaView class of google cardboard SDK to view panorama in my app. VrPanoramaView class provides gyro navigation to view panorama. Is it possible to attach touch events along with gyro navigation to the panorama.

Thanks!

Upvotes: 14

Views: 1073

Answers (2)

Zukhriddin Kamolov
Zukhriddin Kamolov

Reputation: 81

Google Cardboard SDK is up-to-date (updated 1 month ago, github), but Google VR SDK is deprecated (updated 5 years ago, github).

You can set onTouchListener or onClickListener, then use callbacks in VideoActivity

Upvotes: 0

Rajesh Jadav
Rajesh Jadav

Reputation: 12861

Now Google Cardboard SDK is deprecated and Google VR SDK is available here.

SDK has VrPanoramaView class for displaying 360 degree panorama images.

You can set touch event on it.

Upvotes: 0

Related Questions