Packagecom.milkmangames.nativeextensions.android
Classpublic class PushAds
InheritancePushAds Inheritance Object

PushAds



Public Properties
 PropertyDefined By
  pushAds : PushAds
[static] [read-only]
PushAds
Public Methods
 MethodDefined By
  
PushAds(appId:String, apiKey:String, testMode:Boolean = false, pushEnabled:Boolean = false, iconAdsEnabled:Boolean = false)
Do not call this directly; use PushAds.create() to initialize or PushAds.pushAds to get current instance.
PushAds
  
create(appId:String, apiKey:String, testMode:Boolean = false, pushEnabled:Boolean = false, iconAdsEnabled:Boolean = false):PushAds
[static] Starts the PushAds service.
PushAds
  
isSupported():Boolean
[static] Check if PushAds is supported on this platform.
PushAds
Public Constants
 ConstantDefined By
  VERSION : String = 1.0.0
[static] Version
PushAds
Property Detail
pushAdsproperty
pushAds:PushAds  [read-only]


Implementation
    public static function get pushAds():PushAds
Constructor Detail
PushAds()Constructor
public function PushAds(appId:String, apiKey:String, testMode:Boolean = false, pushEnabled:Boolean = false, iconAdsEnabled:Boolean = false)

Do not call this directly; use PushAds.create() to initialize or PushAds.pushAds to get current instance.

Parameters
appId:String
 
apiKey:String
 
testMode:Boolean (default = false)
 
pushEnabled:Boolean (default = false)
 
iconAdsEnabled:Boolean (default = false)
Method Detail
create()method
public static function create(appId:String, apiKey:String, testMode:Boolean = false, pushEnabled:Boolean = false, iconAdsEnabled:Boolean = false):PushAds

Starts the PushAds service. You should call this once at the very beginning of your application.

Parameters

appId:String — your app id from the AirPush website
 
apiKey:String — your api key from the AirPush website
 
testMode:Boolean (default = false) — set to true if you want to run in test mode
 
pushEnabled:Boolean (default = false) — set to true to enable push notification ads
 
iconAdsEnabled:Boolean (default = false) — set to true to enable icon ads on the user's home screen

Returns
PushAds — new PushAds instance
isSupported()method 
public static function isSupported():Boolean

Check if PushAds is supported on this platform.

Returns
Boolean — true if the current platform supports PushAds (Android.)
Constant Detail
VERSIONConstant
public static const VERSION:String = 1.0.0

Version