Skip to main content

getStatsFirstPlayWallClock

Introduction

The getStatsFirstPlayWallClock() method retrieves the first play wall clock timestamp from the Stats response metadata. This allows your app to obtain the initial play time without parsing the stats response directly.

Parameters

This method takes no parameters.

Return Value

TypeDescription
String?The first play wall clock timestamp as an ISO 8601 string, or nil if not available.

Code Example

// Retrieve the first play wall clock from the stats response
if let wallClock = maestroEventInterfaceReference.getStatsFirstPlayWallClock() {
print("First play wall clock: \(wallClock)")
} else {
print("No firstPlayWallClock available")
}

Notes

  • Returns nil if no stats data has been fetched yet or if the response does not contain a firstPlayWallClock value.
  • The returned string is an ISO 8601 timestamp (e.g., "2025-12-24T18:30:00.000Z").