Click or drag to resize

HeadsetActivityMonitor Class

Checks to see ifVR headset is active, or currently idle
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDKSingletonBehaviour
              ImmerseSDK.Platforms.VRHeadsetActivityMonitor

Namespace:  ImmerseSDK.Platforms.VR
Assembly:  ImmerseSDK.NoDll (in ImmerseSDK.NoDll.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public class HeadsetActivityMonitor : SingletonBehaviour

The HeadsetActivityMonitor type exposes the following members.

Constructors
  NameDescription
Public methodHeadsetActivityMonitor
Initializes a new instance of the HeadsetActivityMonitor class
Top
Methods
Events
  NameDescription
Public eventOnHeadsetActive
Fires when headset becomes active
Public eventOnHeadsetIdle
Fires when headset becomes idle
Top
Fields
  NameDescription
Public fieldStatic memberInactivityTimeoutInSeconds
Note this timeout will be in addition to SteamVR's internal ~20 second timeout
Public fieldStatic memberLoopDelayInSeconds
Delay between checks for inactivity
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also