Packagenet.flashplusplus.Snapdragon.iAdNetwork
Classpublic class SDAdManager
InheritanceSDAdManager Inheritance flash.events.EventDispatcher



Public Methods
 MethodDefined By
  
SDAdManager(namespace:Namespace)
Constructor of SDAdManager singleton class.
SDAdManager
  
addAdBannerView(orientation:String, position:String):void
Add an advertisment banner to the main view of the application.
SDAdManager
  
Add a full screen advertisment to the main view of the application.
SDAdManager
  
changeOrientation(orientation:String):void
Adjusts the adbannerview to the new orientation.
SDAdManager
  
getInstance(nameSpace:Namespace):SDAdManager
[static] Function to get SDAdManager instance.
SDAdManager
  
Removes the advertisment banner from the main view of the application.
SDAdManager
Public Constants
 ConstantDefined By
  BANNER_POSITION_BOTTOM : String = bottom
[static]
SDAdManager
  BANNER_POSITION_TOP : String = top
[static]
SDAdManager
Constructor Detail
SDAdManager()Constructor
public function SDAdManager(namespace:Namespace)

Constructor of SDAdManager singleton class. It cannot be used directly, use getAdManager property of Snapdragon instead.

Parameters
namespace:Namespace — is an internal namespace, so this method cannot be used.

Throws
error — when it is called.
Method Detail
addAdBannerView()method
public function addAdBannerView(orientation:String, position:String):void

Add an advertisment banner to the main view of the application. The banner shows up only, when the advertisment is loaded.

Parameters

orientation:String — is to tell the new screen orientation. Possible values from Snapdragon class: SCREEN_ORIENTATION_LANDSCAPE, SCREEN_ORIENTATION_PORTRAIT
 
position:String (default = NaN) — is to tell where should be the banner placed. Possible values from Snapdragon class: BANNER_POSITION_TOP, BANNER_POSITION_BOTTOM


Events
net.flashplusplus.Snapdragon.iAdNetwork.events.SDAdEvent.BANNER_VIEW_LOADED — When the advertisment is loaded for the banner view.
 
net.flashplusplus.Snapdragon.iAdNetwork.events.SDAdEvent.BANNER_VIEW_FAILED — When there was an error while loading the advertisment.
addAdFullScreenView()method 
public function addAdFullScreenView():void

Since : iOS 7.0 on iPhone and iOS 4.3 on iPad

Add a full screen advertisment to the main view of the application.


Events
net.flashplusplus.Snapdragon.iAdNetwork.events.SDAdEvent.FULL_SCREEN_VIEW_LOADED — When the advertisment is loaded for the full screen view.
 
net.flashplusplus.Snapdragon.iAdNetwork.events.SDAdEvent.FULL_SCREEN_VIEW_FAILED — When there was an error while loading the advertisment.
changeOrientation()method 
public function changeOrientation(orientation:String):void

Adjusts the adbannerview to the new orientation.

Parameters

orientation:String — is to tell the new screen orientation. Possible values from Snapdragon class: SCREEN_ORIENTATION_LANDSCAPE, SCREEN_ORIENTATION_PORTRAIT

getInstance()method 
public static function getInstance(nameSpace:Namespace):SDAdManager

Function to get SDAdManager instance. It is not meant to be used.

Parameters

nameSpace:Namespace — is an internal namespace, so this method cannot be used.

Returns
SDAdManager — the only instance of SDAdManager object.
removeAdBannerView()method 
public function removeAdBannerView():void

Removes the advertisment banner from the main view of the application.

Constant Detail
BANNER_POSITION_BOTTOMConstant
public static const BANNER_POSITION_BOTTOM:String = bottom

BANNER_POSITION_TOPConstant 
public static const BANNER_POSITION_TOP:String = top