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
Gets a value indicating whether the
GvrDaydreamApi has been created. |
Public static functions |
|
---|---|
Create()
|
void
Creates a generic asynchronous callback. |
CreateAsync(Action< bool > callback)
|
void
Asynchronously instantiates a
GvrDayreamApi . |
LaunchVrHome()
|
void
LaunchVrHomeAsync(callback) instead. Launches a generic asynchronous VR Home call. |
LaunchVrHomeAsync(Action< bool > callback)
|
void
Asynchronously launches VR Home.
|
Properties
IsCreated
static bool IsCreated
Gets a value indicating whether the GvrDaydreamApi
has been created.
Value true
if the GvrDaydreamApi has been created, false
otherwise.
Public static functions
Create
void Create()
Creates a generic asynchronous callback.
Deprecated. Create() without arguments is deprecated. Use CreateAsync(callback) instead.
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.
Details | |||
---|---|---|---|
Parameters |
|
LaunchVrHome
void LaunchVrHome()
Launches a generic asynchronous VR Home call.
Deprecated.
Use LaunchVrHomeAsync(callback)
instead.
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.
Details | |||
---|---|---|---|
Parameters |
|