fetchContent method

Future<void> fetchContent()

Fetches the content for the unit.

Implementation

Future<void> fetchContent() async {
  try {
    await _initializationWebviewCompleter.future;
    _tblEventsManager.trySendTrackingGrantedEventToBeacon(
        WHERE_CALLED_FROM.FETCH_CLASSIC_UNIT);
    TBLLogger.log(
        "fetchContent | Fetching content for placement: $_placement, viewId: $_viewId");
    return _taboolaWebviewController.fetchContent();
  } catch (e) {
    TBLLogger.log("fetchContent | Error: $e");
  }
}