updateKeyPlaysData
Introduction
The updateKeyPlaysData(to:)
method feeds the SDK new key plays data gathered from a server endpoint. If the to
parameter is nil, it indicates the app failed to fetch the key plays data and that the SDK should indicate this to the user by replacing the contents of the key plays panel with an error message.
Parameters
Parameter | Type | Description |
---|---|---|
to | MaestroKeyPlaysResponse? | The response model containing the data most recently collected by the app. |
Code Example
let maestroKeyPlaysResponse = funcThatReturnsAMaestroKeyPlaysResponse()
maestroEventInterfaceReference.updateKeyPlaysData(to: maestroKeyPlaysResponse)