This should typically be called in Activity.onCreate for pure VR activities, and will only
have an effect on Android N+.

On Daydream-ready devices, if Google VR Services is not present and enabled, this will
prompt the user to install or enable Google VR Services before continuing. If the user
continues without Google VR Services present and enabled, the Android OS will not enter VR
mode, and some functionality may not be available (e.g. the controller).

Parameters

activity

The Activity for which to set VR mode.

enabled

Whether to enable VR mode.

Returns

true if this succeeded, false otherwise. This can fail either because
the device does not support VR mode, or because Google VR Services is unavailable.

All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.