Skip to main content

updateEventData

Introduction

The updateEventData(eventIDs:) method updates the SDK with the IDs of the events currently being watched. Call this method whenever the set of active event IDs changes — for example, when the user switches events in a multi-stream experience.

Parameters

ParameterTypeDescription
eventIDs[String]The list of event IDs for the events currently being watched.

Code Example

// Update the SDK when the active event IDs change
maestroEventInterfaceReference.updateEventData(eventIDs: ["event-id-1", "event-id-2"])

Notes

  • Call this method whenever the set of active events changes so the SDK can keep its internal state in sync.
  • See getCurrentEventIDs() to read the IDs currently stored by the SDK.