Help initialising the engine

Everything about using the stand-alone Adblock Plus app on Android
Post Reply
KirkFrederick
Posts: 1
Joined: Sun Jun 17, 2018 10:10 pm

Help initialising the engine

Post by KirkFrederick »

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.
Post Reply