Help initialising the engine

Everything about using the stand-alone Adblock Plus app on Android

Help initialising the engine

Postby KirkFrederick » Sun Jun 17, 2018 10:23 pm

Hello I'm having trouble getting the engine running.

Code: Select all
AppInfo appInfo;
    appInfo.name = 'awesomewebfilter';
    appInfo.version = '0.1';
    appInfo.locale = 'en-US';

    JsEngine jsEngine(appInfo);

    auto filterEngine = FilterEngine::CreateAsync(jsEngine);


I get a couple of errors with this code.

error: no matching constructor for initialization of 'AdblockPlus::JsEngine'


I'm also having trouble with the second parameter of CreateAsync. Not sure what to put there.

Thanks for any help.
KirkFrederick
 
Posts: 1
Joined: Sun Jun 17, 2018 10:10 pm

Return to Adblock Plus for Android support

Who is online

Users browsing this forum: No registered users and 7 guests