VrPanoramaView

public class VrPanoramaView

VR View that renders a static mono or stereo panorama (Experimental API).

Nested Classes

class VrPanoramaView.Options Configure the VrPanoramaView's parameters for loading images. 

Inherited Constants

Inherited Fields

Public Constructors

Public Methods

void
loadImageFromBitmap(Bitmap bitmap, VrPanoramaView.Options options)
Loads a pano image using the given bitmap.
void
setEventListener(VrPanoramaEventListener eventListener)
Register a callback to be invoked VrPanoramaView related events have occurred.

Inherited Methods

Public Constructors

public VrPanoramaView (Context context, AttributeSet attrs)

Parameters
context Context must be an instance of activity, otherwise a Runtime exception is thrown.
attrs Custom attributes for the view.

public VrPanoramaView (Context context)

Parameters
context Context must be an instance of activity, otherwise a Runtime exception is thrown.

Public Methods

public void loadImageFromBitmap (Bitmap bitmap, VrPanoramaView.Options options)

Loads a pano image using the given bitmap.

Parameters
bitmap The image to load. It should be encoded in ARGB_8888 or RGB_565 format. See format description at android.graphics.Bitmap.Config
options Panorama specific information about the bitmap's format. Null will use the default options.

public void setEventListener (VrPanoramaEventListener eventListener)

Register a callback to be invoked VrPanoramaView related events have occurred.

Parameters
eventListener Recieves general VrEventListener events and VrPanoramaEventListener events.