Wiki

Clone wiki

Adobe Air Plugin / setPlacementAlignmentWithOffset

Overview

Sets banner placement position on the screen with defined offset. Please note banner cannot be displayed outside of the screen on the Android platform while it is possible on iOS. So please always make sure your banner displays correctly on both platforms.

Syntax

setPlacementAlignmentWithOffset(placementName:String, bannerAlignment:int, x:int, y:int)
placementName (required)

String. Unique name of placement. The same name will be used in addapptr.com account.

bannerAlignment (required)

int. Banner alignment on the screen. AATKITExtension.TOPLEFT = 0 AATKITExtension.TOPCENTER = 1 AATKITExtension.TOPRIGHT = 2 AATKITExtension.BOTTOMLEFT = 3 AATKITExtension.BOTTOMCENTER = 4 AATKITExtension.BOTTMORIGHT = 5

x (required)

int. The x value of the banner offset. When this value is positive the banner is moved to the right, when it is negative the banner is moved to the left.

y (required)

int. The y value of the banner offset. When this value is positive the banner is moved to the bottom, when it is negative the banner is moved to the top.

returns void.

Examples

#!ActionScript
import com.intentsoftware.adobe.aatkit.AATKitExtension;

.
.
.

AATKitExtension.getInstance().setPlacementAlignmentWithOffset("BannerPlacement", AATKITExtension.BOTTOMCENTER, 0, -10);

Updated