buildWebviewUrl static method

String buildWebviewUrl(
  1. dynamic viewId,
  2. dynamic _publisherId,
  3. dynamic _mode,
  4. dynamic _pageType,
  5. dynamic _targetType,
  6. dynamic _pageId,
  7. dynamic _placement,
  8. dynamic _pageUrl,
)

Builds the URL for the webview

Implementation

static String buildWebviewUrl(viewId, _publisherId, _mode, _pageType,
    _targetType, _pageId, _placement, _pageUrl) {
  return "https://cdn.taboola.com/shared/templateJS.html?"
      "publisher=${TBLWebviewUtils._encodeParam(_publisherId)}"
      "&mode=${TBLWebviewUtils._encodeParam(_mode)}"
      "&pageType=${TBLWebviewUtils._encodeParam(_pageType)}"
      "&placement=${TBLWebviewUtils._encodeParam(_placement)}"
      "&targetType=${TBLWebviewUtils._encodeParam(_targetType)}"
      "&pageId=${TBLWebviewUtils._encodeParam(_pageId)}"
      "&pageUrl=${TBLWebviewUtils._encodeParam(_pageUrl)}"
      "&DIV_ID=taboola2"
      "&viewID=${_encodeParam(viewId.toString())}";
}