SkillAgentSearch skills...

RueChartboost

No description available

Install / Use

/learn @WalterTorres/RueChartboost
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

RueChartboost

RueChartboost allows you to show ads using chartboost in android and ios.

For correct usage of this extension:

IOS


#if (android || ios)
import extension.haxeChartboost.HaxeChartboost;
#end
class Main extends Sprite 
{
	public function new () 
	{
		super ();
		#if ios
		HaxeChartboost.init("Add your ios app id here", "Add your ios app signature here");
		Actuate.timer(3.0).onComplete(DoThisAfterABit);
		#end
	}
 	private function DoThisAfterABit():Void
	{
		HaxeChartboost.OpenIntersetial(); //function call shows an ad on the screen
	}
}

You are required to init the chartboost through your code, as soon as possible by giving it the correct information from your chartboost campaign.

Android


#if (android || ios)
import extension.haxeChartboost.HaxeChartboost;
#end
class Main extends Sprite 
{
	public function new () 
	{
		super ();
		#if android
		Actuate.timer(3.0).onComplete(DoThisAfterABit);
		#end
	}
 	private function DoThisAfterABit():Void
	{
		HaxeChartboost.OpenIntersetial(); //function call shows an ad on the screen
	}
}

Android does not require an in code initialization, but instead you are required to add the app id and the app signature from your chartboost campaign into your project.xml, like this:

<setenv name="ChartboostID" value="your chartboost app id here" if="android" />

<setenv name="ChartboostSignature" value="your chartboost app signature here" if="android" />

The rest is handled internally through OpenFL's new extension API.

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated8y ago
Forks3

Languages

Objective-C

Security Score

55/100

Audited on Jan 11, 2018

No findings