EosMetrics.EventRecorder.new

function new(): EosMetrics.EventRecorder {
    // Gjs wrapper for emtr_event_recorder_new()
}
  

Testing function for creating a new EosMetrics.EventRecorder in the C API. You only need to use this if you are creating an event recorder for use in unit testing.

For all normal uses, you should use EosMetrics.EventRecorder.get_default instead.

Returns

a new EosMetrics.EventRecorder. Free with g_object_unref() if using C when done with it.