track method
Future<void>
track(
- Event event, {
- List<
SelfDescribing> ? contexts, - MediaPlayerEntity? player,
- MediaAdEntity? ad,
- MediaAdBreakEntity? adBreak,
Tracks a media player event along with the media entities (e.g., player, session, ad).
Implementation
Future<void> track(Event event,
{List<SelfDescribing>? contexts,
MediaPlayerEntity? player,
MediaAdEntity? ad,
MediaAdBreakEntity? adBreak}) async {
await Snowplow.trackMediaEvent(
tracker: tracker,
id: id,
event: event,
contexts: contexts,
player: player,
ad: ad,
adBreak: adBreak);
}