Skip to main content

getKeyPlaysCount

Introduction

The getKeyPlaysCount() method retrieves the total number of key plays available in the currently loaded event. This information can be useful for understanding the breadth of interactive content available or for iterating over the key plays when needed. If no key plays data is available, the method returns nil.

Return Value

Return TypeDescriptionExample
Int?The number of key plays available for the event, or nil if the information is not available.5

Code Example

if let keyPlaysCount = eventInterface.getKeyPlaysCount() {
print("Total number of key plays: \(keyPlaysCount)")
} else {
print("Key plays count is not available.")
}