Verse 1.0
A multi-platform multiplayer Virtual Reality experience developed with Unity
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
O8C.IO8CAppFocusState Interface Reference

Provides access to the app focus state. More...

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

Public Types

enum  VisibilityState { visible , hidden , visibleBlurred , unknown }
 App visibility states.
 
enum  XRState { normal , VR , AR , unknown }
 XR states.
 

Public Member Functions

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.
 

Detailed Description

Provides access to the app focus state.

Member Function Documentation

◆ AddOnXRChangeObserver()

void O8C.IO8CAppFocusState.AddOnXRChangeObserver ( Action< XRState observer)

Add an observer to the "XR change" event.

Parameters
observerThe observer.

◆ GetCurrentVisibilityState()

VisibilityState O8C.IO8CAppFocusState.GetCurrentVisibilityState ( )

Returns the current visibility state.

Returns
The current visibility state.

Implemented in O8C.O8CAppFocusState, and O8C.O8CAppFocusStateDefault.

◆ GetCurrentXRState()

XRState O8C.IO8CAppFocusState.GetCurrentXRState ( )

Returns the current XR state.

Returns
The current XR state.

Implemented in O8C.O8CAppFocusState, and O8C.O8CAppFocusStateDefault.

◆ RemoveOnXRChangeObserver()

void O8C.IO8CAppFocusState.RemoveOnXRChangeObserver ( Action< XRState observer)

Remmoves an observer to the "XR change" event.

Parameters
observerThe observer.

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