Basic concept in using +( void )videoWasViewedAdcolony:( BOOL )result?

  • Sonared
    Likes 0

    Problem Description

    I am a beginner coder. I watched the tutorial in integrating AdColony with Cocos2d-x, and came across something I don’t understand.

    https://www.youtube.com/watch?v=TyOYPwMXScE

     

    After the user watches a video ad, this callback function is called in IOSResults.mm.

     

    +( void )videoWasViewedAdcolony:( BOOL )result

    {

        // CPP code here

    }

     

    Also, the adcolony ad was called from HelloWorldScene.cpp.

    AdColony::showVideoAC(true, true);

     

     How can I connect these two files: IOSResults.mm ↔ HelloWorldScene.cpp?

     

    I want to do some action with the variables in HelloWorldScene.cpp from IOSResults.mm.

    If you can tell me what to study for to do such thing, I can look it up in google( if it’s too complicated to be explained here. ).

     

    Thank you.

     


  • Sonar Systems admin
    Likes 1

    You could make the IOS results store something in local storage and have your scene constantly check the status of the local storage to see what has happened.

Login to reply