Skip to content

GlobalRumMonitor

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

object GlobalRumMonitor

A global RumMonitor holder, ensuring that all RUM events are registered on the same instance.

If the RUM feature is not enabled, a default no-op implementation is used.

You can then retrieve the active RumMonitor using the get method.

Functions

get

@JvmOverloads

@JvmStatic

fun get(sdkCore: SdkCore = Datadog.getInstance()): RumMonitor

Returns the constant RumMonitor instance.

Until a RUM feature is enabled, a no-op implementation is returned.

Return

The monitor associated with the instance given instance, or a no-op monitor. If SDK instance is not provided, default instance will be used.

isRegistered

@JvmOverloads

@JvmStatic

fun isRegistered(sdkCore: SdkCore = Datadog.getInstance()): Boolean

Identify whether a RumMonitor has previously been registered for the given SDK instance.

This check is useful in scenarios where more than one component may be responsible for registering a monitor.

Return

whether a monitor has been registered

Parameters
sdkCore the SdkCore instance to check against. If not provided, default instance will be checked.
Clone this wiki locally