OpenXRHybridApp
Inherits: Object
Used to query/update an app's hybrid app state.
Description
Used to query/update an app's hybrid app state.
A hybrid app is an application capable of swapping between an immersive 3D mode and a 2D panel mode.
Methods
String |
get_launch_data ( ) const |
get_mode ( ) const |
|
bool |
is_hybrid_app ( ) const |
bool |
switch_mode ( HybridMode mode, String data="" ) |
Enumerations
enum HybridMode:
HybridMode HYBRID_MODE_NONE = -1
Disable hybrid app functionality.
HybridMode HYBRID_MODE_IMMERSIVE = 0
3D immersive hybrid app mode.
HybridMode HYBRID_MODE_PANEL = 1
2D panel hybird app mode.
Method Descriptions
String get_launch_data ( ) const
Gets the data
string that was passed to switch_mode.
HybridMode get_mode ( ) const
Gets the current hybrid app mode.
bool is_hybrid_app ( ) const
Returns true
if application is a hybrid app.
bool switch_mode ( HybridMode mode, String data="" )
Switches the application to the specified hybrid app mode.
The data
string will be accessible via get_launch_data upon switching hybrid app modes.