buildWebviewUrl static method
String
buildWebviewUrl(
- dynamic viewId,
- dynamic _publisherId,
- dynamic _mode,
- dynamic _pageType,
- dynamic _targetType,
- dynamic _pageId,
- dynamic _placement,
- 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())}";
}