The Contents of NendIconModule - fan-ADN/nendSDK-cocos2d-x GitHub Wiki
Method (Only for Android)
NADIconLoader
Generate static void createNADIconLoader(char* apiKey, char* spotID);
Set the app’s apiKey and spotID which can be set on the nend dashboard.
NendIconModule::createNADIconLoader("apiKey published on dashboard", "spotID published on dashboard");
Select the adplacement and generate the Icon
static void createNADIconView(cocos2d::Point pos);
Set the adplacement of Icon ad.
It can be used when you would like to place icons individually.
NendIconModule::createNADIconView(Point(0, 75));
Select the adplacement and generate the Icon (adpalacements, spotID, title display/hide, space display/hide, text color) ※function added from ver1.2.1
static void createNADIconView(cocos2d::Point pos, char* spotID, bool isVisible, bool isSpace, Color3B titleColor);
Set and display adpalacements, spotID which can be generated on the dashboard, title display/hide, space display/hide, text color.
It can be used when you would like to place icons individually by ad space.
NendIconModule::createNADIconView(Point(0, 75), "spotID published on dashboard", true, true, Color3B::BLACK);
Generate Icons on the bottom center of the screen in the line
static void createNADIconViewBottom();
Displaying Icon ads on the bottom center of the screen (※usually 4 icons will display up)
NendIconModule::createNADIconViewBottom();
Generate Icons on the bottom center of the screen in the line (select the number you want to display) ※function added from ver1.1.1
static void createNADIconViewBottom(int iconCount);
Select the number of icons and displaying on the bottom center of the screen. (※at most 6 icons)
NendIconModule::createNADIconViewBottom(select integer from 1~6);
Generate Icons on the bottom center of the screen in the line (spotID, title display/hide, space display/hide, text color) ※function added from ver1.2.1
static void createNADIconViewBottom(char* spotID, bool isVisible, bool isSpace, Color3B titleColor);
Set and display spotID which can be generated on the dashboard, title display/hide, space display/hide, text color. (※usually 4 icons will display up)
NendIconModule::createNADIconViewBottom("spotID published on dashboard", true, true, Color3B::BLACK);
Generate Icons on the bottom center of the screen in the line (the number of icon, spotID, title display/hide, space display/hide, text color) ※function added from ver1.2.1
static void createNADIconViewBottom(int iconCount, char* spotID, bool isVisible, bool isSpace, Color3B titleColor);
Set and display the number of icons, spotID which can be generated on the dashboard, title display/hide, space display/hide, text color. (※at most 6 icons)
NendIconModule::createNADIconViewBottom(select integer from 1~6, "spotID published on dashboard", true, true, Color3B::BLACK);
Generate Icons on the top center of the screen in the line
static void createNADIconViewTop();
Displaying icon ads on the top center of the screen. (※usually 4 icons will display up)
NendIconModule::createNADIconViewTop();
Generate Icons on the top center of the screen in the line (select the number of icon you want to display) ※function added from ver1.1.1
static void createNADIconViewTop(int iconCount);
Select the number of icons and displaying on the top center of the screen. (※at most 6 icons)
NendIconModule::createNADIconViewTop(select integer from 1~6);
Generate Icons on the top center of the screen in the line (spotID, title display/hide, space display/hide, text color) ※function added from ver1.2.1
static void createNADIconViewTop(char* spotID, bool isVisible, bool isSpace, Color3B titleColor);
Set and display spotID which can be generated on the dashboard, title display/hide, space display/hide, text color. (※usually 4 icons will display up)
NendIconModule::createNADIconViewTop("spotID published on dashboard", true, true, Color3B::BLACK);
Generate Icons on the top center of the screen in the line(the number of icon, spotID, title display/hide, space display/hide, text color) ※function added from ver1.2.1
static void createNADIconViewTop(int iconCount, char* spotID, bool isVisible, bool isSpace, Color3B titleColor);
Set and display the number of icons, spotID which can be generated on the dashboard, title display/hide, space display/hide, text color. (※at most 6 icons)
NendIconModule::createNADIconViewTop(select integer from 1~6, "spotID published on dashboard", true, true, Color3B::BLACK);
Hide Icons
static void hideNADIconView();
Hide Icon ads.
It will reflect on all ads you are using.
NendIconModule::hideNADIconView();
Hide Icons(select spotID)※function added from ver1.2.1
static void hideNADIconView(char* spotID);
Select spotID which can be generated on the dashboard and hide the icon.
NendIconModule::hideNADIconView("spotID published on dashboard");
Redisplay the Icon
static void showNADIconView();
Redisplay the hidden icon.
It will reflect on all ads you are using.
NendIconModule::showNADIconView();
Redisplay the Icon(select spotID)※function added from ver1.2.1
static void showNADIconView(char* spotID);
Select spotID which can be generated on the dashboard and redisplay the icon.
NendIconModule::showNADIconView("spotID published on dashboard");
Loading Ads
static void load();
Start loading ad regularly.
It will reflect on all ads you are using.
NendIconModule::load();
Loading Ad(select spotID)※function added from ver1.2.1
static void load(char* spotID);
Select spotID which can be generated on the dashboard and start loading ads regularly.
NendIconModule::load("spotID published on dashboard");
Pause loading ad
static void pause();
Pause loading ad.
It will reflect on all ads you are using.
NendIconModule::pause();
Pause loading ad(select spotID)※function added from ver1.2.1
static void pause(char* spotID);
Select spotID which can be generated on the dashboard and pause the ad loading.
NendIconModule::pause("spotID published on dashboard");
Restart loading ad
static void resume();
Restart loading ad which is paused loading.
It will reflect on all ads you are using.
NendIconModule::resume();
Restart loading ad (select spotID)※function added from ver1.2.1
static void resume(char* spotID);
Select spotID which can be generated on the dashboard and restart loading the ad which is paused.
NendIconModule::resume("spotID published on dashboard");
Release the resource
static void release();
Release the resource which was using for Displaying ad process.
It will reflect on all ads you are using.
NendIconModule::release();
Release the resource(select spotID)※function added from ver1.2.1
static void release(char* spotID);
Release the resource which was using for Displaying ad process.
NendIconModule::release("spotID published on dashboard");