GvrDaydreamApi

Main entry point Daydream specific APIs.

Summary

This class automatically instantiates an instance when this API is used for the first time. For explicit control over when the instance is created and the Java references are setup call the provided CreateAsync method, for example when no UI is being displayed to the user.

Inheritance

Inherits from: IDisposable

Properties

IsCreated
static bool

Public static functions

Create()
void
CreateAsync(Action< bool > callback)
void
Asynchronously instantiates a GvrDayreamApi.
LaunchVrHome()
void
LaunchVrHomeAsync(Action< bool > callback)
void
Asynchronously launches VR Home.

Properties

IsCreated

static bool IsCreated

Public static functions

Create

void Create()

CreateAsync

void CreateAsync(
  Action< bool > callback
)

Asynchronously instantiates a GvrDayreamApi.

The provided callback will be called with a bool argument indicating whether instance creation was successful.

LaunchVrHome

void LaunchVrHome()

LaunchVrHomeAsync

void LaunchVrHomeAsync(
  Action< bool > callback
)

Asynchronously launches VR Home.

Instantiates an instance of GvrDaydreamApi if necessary. If successful, launches VR Home. The provided callback will be called with a bool argument indicating whether instance creation and launch of VR Home was successful.