VrEventListener

public class VrEventListener
Known Direct Subclasses

Listener for events generated by VR Views.

Public Constructors

Public Methods

void
onClick()
Called when the view has been clicked.
void
onDisplayModeChanged(int newDisplayMode)
Called when the VR widget's display mode has changed.
void
onLoadError(String errorMessage)
There was an error when loading the resource.
void
onLoadSuccess()
The resource was successfully loaded and rendering has started.

Inherited Methods

Public Constructors

public VrEventListener ()

Public Methods

public void onClick ()

Called when the view has been clicked.

public void onDisplayModeChanged (int newDisplayMode)

Called when the VR widget's display mode has changed.

Parameters
newDisplayMode The new display mode represented by one of the VrWidgetView.DisplayMode constants.

public void onLoadError (String errorMessage)

There was an error when loading the resource.

Parameters
errorMessage String containing details about the error that occurred. This is not internationalized and not meant to be shown to end-users.

public void onLoadSuccess ()

The resource was successfully loaded and rendering has started.