Package | net.flashplusplus.Snapdragon.iAdNetwork |
Class | public class SDAdManager |
Inheritance | SDAdManager ![]() |
Method | Defined 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 | ||
addAdFullScreenView():void
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 | ||
removeAdBannerView():void
Removes the advertisment banner from the main view of the application. | SDAdManager |
Constant | Defined By | ||
---|---|---|---|
BANNER_POSITION_BOTTOM : String = bottom [static] | SDAdManager | ||
BANNER_POSITION_TOP : String = top [static] | SDAdManager |
SDAdManager | () | Constructor |
public function SDAdManager(namespace:Namespace)
Constructor of SDAdManager singleton class. It cannot be used directly, use getAdManager property of Snapdragon instead.
Parametersnamespace:Namespace — is an internal namespace, so this method cannot be used.
|
error — when it is called.
|
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
|
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.
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.
|
SDAdManager — the only instance of SDAdManager object.
|
removeAdBannerView | () | method |
public function removeAdBannerView():void
Removes the advertisment banner from the main view of the application.
BANNER_POSITION_BOTTOM | Constant |
public static const BANNER_POSITION_BOTTOM:String = bottom
BANNER_POSITION_TOP | Constant |
public static const BANNER_POSITION_TOP:String = top