API reference
API reference
Select your platform
No SDKs available
No versions available

OVRMetricsNetwork Class

Modifiers: final
Pre-built metrics group for network performance monitoring via the OVR Metrics overlay. Accepts a lambda that provides access to the NetworkingBase instance, then offers fluent methods (rtt(), bandwidth(), packetLoss()) to register individual network metrics. Add to OVRMetricsFeature for automatic dashboard integration.

Signature

class OVRMetricsNetwork(val getNetworking: () -> NetworkingBase?, init: OVRMetricsNetwork.() -> Unit = {}) : OVRMetricsGroup

Constructors

OVRMetricsNetwork ( getNetworking , init )
Signature
constructor(getNetworking: () -> NetworkingBase?, init: OVRMetricsNetwork.() -> Unit = {})
Parameters
getNetworking: Function0
init: Function1

Properties

getNetworking : Function0
[Get]
Signature
val getNetworking: () -> NetworkingBase?
groupName : String
[Get]
Signature
val groupName: String
metrics : mutableListOf<OVRMetric>()
[Get]
Signature
val metrics: mutableListOf<OVRMetric>()
overlayMessages : mutableListOf<() -> String>()
[Get]
Signature
val overlayMessages: mutableListOf<() -> String>()

Methods

packetLoss ()
Signature
fun packetLoss(): OVRMetricsNetwork
receiveBandwidth ()
Signature
fun receiveBandwidth(): OVRMetricsNetwork
rtt ()
Signature
fun rtt(): OVRMetricsNetwork
sendBandwidth ()
Signature
fun sendBandwidth(): OVRMetricsNetwork