handleMethodCall method

Future handleMethodCall(
  1. MethodCall call
)

Implementation

Future<dynamic> handleMethodCall(MethodCall call) async {
  switch (call.method) {
    case 'createTracker':
      return onCreateTracker(call);
    case 'trackStructured':
      return onTrackStructured(call);
    case 'trackSelfDescribing':
      return onTrackSelfDescribing(call);
    case 'trackScreenView':
      return onTrackScreenView(call);
    case 'trackScrollChanged':
      return onTrackScrollChanged(call);
    case 'trackListItemView':
      return onTrackListItemView(call);
    case 'trackTiming':
      return onTrackTiming(call);
    case 'trackConsentGranted':
      return onTrackConsentGranted(call);
    case 'trackConsentWithdrawn':
      return onTrackConsentWithdrawn(call);
    case 'trackPageView':
      return onTrackPageView(call);
    case 'setUserId':
      return onSetUserId(call);
    case "getSessionUserId":
      return onGetSessionUserId(call);
    case "getSessionId":
      return onGetSessionId(call);
    case "getSessionIndex":
      return onGetSessionIndex(call);
    case "startMediaTracking":
      return onStartMediaTracking(call);
    case "endMediaTracking":
      return onEndMediaTracking(call);
    case "updateMediaTracking":
      return onUpdateMediaTracking(call);
    case "trackMediaAdBreakEndEvent":
      return onTrackMediaAdBreakEndEvent(call);
    case "trackMediaAdBreakStartEvent":
      return onTrackMediaAdBreakStartEvent(call);
    case "trackMediaAdClickEvent":
      return onTrackMediaAdClickEvent(call);
    case "trackMediaAdCompleteEvent":
      return onTrackMediaAdCompleteEvent(call);
    case "trackMediaAdFirstQuartileEvent":
      return onTrackMediaAdFirstQuartileEvent(call);
    case "trackMediaAdMidpointEvent":
      return onTrackMediaAdMidpointEvent(call);
    case "trackMediaAdPauseEvent":
      return onTrackMediaAdPauseEvent(call);
    case "trackMediaAdResumeEvent":
      return onTrackMediaAdResumeEvent(call);
    case "trackMediaAdSkipEvent":
      return onTrackMediaAdSkipEvent(call);
    case "trackMediaAdStartEvent":
      return onTrackMediaAdStartEvent(call);
    case "trackMediaAdThirdQuartileEvent":
      return onTrackMediaAdThirdQuartileEvent(call);
    case "trackMediaBufferEndEvent":
      return onTrackMediaBufferEndEvent(call);
    case "trackMediaBufferStartEvent":
      return onTrackMediaBufferStartEvent(call);
    case "trackMediaEndEvent":
      return onTrackMediaEndEvent(call);
    case "trackMediaErrorEvent":
      return onTrackMediaErrorEvent(call);
    case "trackMediaFullscreenChangeEvent":
      return onTrackMediaFullscreenChangeEvent(call);
    case "trackMediaPauseEvent":
      return onTrackMediaPauseEvent(call);
    case "trackMediaPictureInPictureChangeEvent":
      return onTrackMediaPictureInPictureChangeEvent(call);
    case "trackMediaPlayEvent":
      return onTrackMediaPlayEvent(call);
    case "trackMediaPlaybackRateChangeEvent":
      return onTrackMediaPlaybackRateChangeEvent(call);
    case "trackMediaQualityChangeEvent":
      return onTrackMediaQualityChangeEvent(call);
    case "trackMediaReadyEvent":
      return onTrackMediaReadyEvent(call);
    case "trackMediaSeekEndEvent":
      return onTrackMediaSeekEndEvent(call);
    case "trackMediaSeekStartEvent":
      return onTrackMediaSeekStartEvent(call);
    case "trackMediaVolumeChangeEvent":
      return onTrackMediaVolumeChangeEvent(call);
    default:
      throw PlatformException(
        code: 'Unimplemented',
        details:
            'snowplow_tracker for web doesn\'t implement \'${call.method}\'',
      );
  }
}