Verse 1.0
A multi-platform multiplayer Virtual Reality experience developed with Unity
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Properties | Events | Private Member Functions | List of all members
O8C.O8CAppFocusStateDefault Class Reference

This class provides a "Bridge" to platform specific application focus state functionality. More...

Inheritance diagram for O8C.O8CAppFocusStateDefault:
O8C.O8CAppFocusState O8C.IO8CAppFocusState

Public Member Functions

override void AddOnXRChangeObserver (Action< IO8CAppFocusState.XRState > observer)
 
override void RemoveOnXRChangeObserver (Action< IO8CAppFocusState.XRState > observer)
 
override IO8CAppFocusState.XRState GetCurrentXRState ()
 
override IO8CAppFocusState.VisibilityState GetCurrentVisibilityState ()
 
abstract void AddOnXRChangeObserver (Action< IO8CAppFocusState.XRState > observer)
 
abstract IO8CAppFocusState.VisibilityState GetCurrentVisibilityState ()
 
abstract IO8CAppFocusState.XRState GetCurrentXRState ()
 
abstract void RemoveOnXRChangeObserver (Action< IO8CAppFocusState.XRState > observer)
 
- Public Member Functions inherited from O8C.IO8CAppFocusState
void AddOnXRChangeObserver (Action< XRState > observer)
 Add an observer to the "XR change" event.
 
void RemoveOnXRChangeObserver (Action< XRState > observer)
 Remmoves an observer to the "XR change" event.
 
XRState GetCurrentXRState ()
 Returns the current XR state.
 
VisibilityState GetCurrentVisibilityState ()
 Returns the current visibility state.
 

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.VisibilityStateOnVisibilityChange
 Observers of the "visibility changed" event.
 
Action< IO8CAppFocusState.XRStateOnXRChange
 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

- Public Types inherited from O8C.IO8CAppFocusState
enum  VisibilityState { visible , hidden , visibleBlurred , unknown }
 App visibility states.
 
enum  XRState { normal , VR , AR , unknown }
 XR states.
 

Detailed Description

This class provides a "Bridge" to platform specific application focus state functionality.

Member Function Documentation

◆ AddOnXRChangeObserver()

override void O8C.O8CAppFocusStateDefault.AddOnXRChangeObserver ( Action< IO8CAppFocusState.XRState observer)
virtual

{{} }

Implements O8C.O8CAppFocusState.

◆ GetCurrentVisibilityState()

override IO8CAppFocusState.VisibilityState O8C.O8CAppFocusStateDefault.GetCurrentVisibilityState ( )
virtual

{{Returns the current visibility state.

Returns
The current visibility state.
} }

Implements O8C.O8CAppFocusState.

◆ GetCurrentXRState()

override IO8CAppFocusState.XRState O8C.O8CAppFocusStateDefault.GetCurrentXRState ( )
virtual

{{Returns the current XR state.

Returns
The current XR state.
} }

Implements O8C.O8CAppFocusState.

◆ OnVisibilityChangeWebXR()

void O8C.O8CAppFocusStateDefault.OnVisibilityChangeWebXR ( WebXRVisibilityState  visibilityState)
private

Callback called on WebXRManager.OnVisibilityChange, the current VisibilityState is updated and OnVisibilityChange is invoked.

Parameters
visibilityStateThe new WebXRVisibilityState.

◆ OnXRChangeWebXR()

void O8C.O8CAppFocusStateDefault.OnXRChangeWebXR ( WebXRState  state,
int  viewsCount,
Rect  leftRect,
Rect  rightRect 
)
private

Callback called on WebXRManager.OnXRChange, the current XRState is updated and OnXRChange is invoked.

Parameters
stateThe new WebXRState
viewsCountUnused
leftRectUnused
rightRectUnused

◆ RemoveOnXRChangeObserver()

override void O8C.O8CAppFocusStateDefault.RemoveOnXRChangeObserver ( Action< IO8CAppFocusState.XRState observer)
virtual

{{} }

Implements O8C.O8CAppFocusState.


The documentation for this class was generated from the following file: