API reference

OVRMetricsNetwork Class

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: () -> NetworkingBase?
init: OVRMetricsNetwork.() -> Unit
Returns
OVRMetricsNetwork

Properties

getNetworking : () -> NetworkingBase?
[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
Returns
OVRMetricsNetwork
receiveBandwidth ()
Signature
fun receiveBandwidth(): OVRMetricsNetwork
Returns
OVRMetricsNetwork
rtt ()
Signature
fun rtt(): OVRMetricsNetwork
Returns
OVRMetricsNetwork
sendBandwidth ()
Signature
fun sendBandwidth(): OVRMetricsNetwork
Returns
OVRMetricsNetwork