ruechartboost

RueChartboost allows you to show ads using chartboost in android and ios.
https://github.com/WalterTorres/RueChartboost

To install, run:

haxelib install ruechartboost 1.0.0 

See using Haxelib in Haxelib documentation for more information.

README.md

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.

Contributors
waltertorres
Version
1.0.0
Published
13 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂