![]() |
Verse 1.0
A multi-platform multiplayer Virtual Reality experience developed with Unity
|
This class provides a "Bridge" to platform specific application focus state functionality. More...
Protected Attributes | |
IO8CAppFocusState.VisibilityState | currentVisiblityState |
The current visibility state. | |
IO8CAppFocusState.XRState | currentXRState |
The current XR state. | |
Properties | |
IO8CAppFocusState.VisibilityState | CurrentVisiblityState [get] |
Accessor for the current visibility state. | |
Events | |
Action< IO8CAppFocusState.VisibilityState > | OnVisibilityChange |
Observers of the "visibility changed" event. | |
Action< IO8CAppFocusState.XRState > | OnXRChange |
Observers of the "XR state changed" event. | |
Private Member Functions | |
void | OnEnable () |
Registers app focus callbacks. | |
void | OnDisable () |
Unregisters app focus callbacks. | |
void | OnXRChangeWebXR (WebXRState state, int viewsCount, Rect leftRect, Rect rightRect) |
Callback called on WebXRManager.OnXRChange, the current XRState is updated and OnXRChange is invoked. | |
void | OnVisibilityChangeWebXR (WebXRVisibilityState visibilityState) |
Callback called on WebXRManager.OnVisibilityChange, the current VisibilityState is updated and OnVisibilityChange is invoked. | |
void | OnInputFocusAcquiredApp () |
Callback called on OVRManager.InputFocusAcquired, OnVisibilityChange is invoked. | |
void | OnInputFocusLostApp () |
Callback called upon OVRManager.InputFocusLost, OnVisibilityChange is invoked. | |
Additional Inherited Members | |
![]() | |
enum | VisibilityState { visible , hidden , visibleBlurred , unknown } |
App visibility states. | |
enum | XRState { normal , VR , AR , unknown } |
XR states. | |
This class provides a "Bridge" to platform specific application focus state functionality.
|
virtual |
{{} }
Implements O8C.O8CAppFocusState.
|
virtual |
{{Returns the current visibility state.
Implements O8C.O8CAppFocusState.
|
virtual |
|
private |
Callback called on WebXRManager.OnVisibilityChange, the current VisibilityState is updated and OnVisibilityChange is invoked.
visibilityState | The new WebXRVisibilityState. |
|
private |
Callback called on WebXRManager.OnXRChange, the current XRState is updated and OnXRChange is invoked.
state | The new WebXRState |
viewsCount | Unused |
leftRect | Unused |
rightRect | Unused |
|
virtual |
{{} }
Implements O8C.O8CAppFocusState.