Skip to main content

userDidStartWatchingEvent

Description

Used when a user switches content; triggers a new panel session. Set this field to start tracking a new event.

Type

string

Usage

m.lib.userDidStartWatchingEvent = "new-event-id"

When to Use

Use this field when:

  • The user switches to a different event or video
  • You want to reload panel data for a new event
  • The event ID changes during the viewing session

Example

' User switches to a new event
sub onEventChanged(newEventId as String)
' Update the event ID in config
m.lib.userDidStartWatchingEvent = newEventId

print "Started watching new event: " + newEventId
end sub

Best Practices

  • Set this field whenever the user navigates to a different event
  • Ensure the new event ID is valid before setting
  • The SDK will automatically fetch new panel data for the event