| Package | com.milkmangames.nativeextensions.android |
| Class | public class PushAds |
| Inheritance | PushAds Object |
| Method | Defined 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 | ||
| Constant | Defined By | ||
|---|---|---|---|
| VERSION : String = 1.0.0 [static] Version | PushAds | ||
| pushAds | property |
| 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.
ParametersappId:String | |
apiKey:String | |
testMode:Boolean (default = false) | |
pushEnabled:Boolean (default = false) | |
iconAdsEnabled:Boolean (default = false) |
| create | () | method |
public static function create(appId:String, apiKey:String, testMode:Boolean = false, pushEnabled:Boolean = false, iconAdsEnabled:Boolean = false):PushAdsStarts 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
|
PushAds — new PushAds instance
|
| isSupported | () | method |
public static function isSupported():BooleanCheck if PushAds is supported on this platform.
ReturnsBoolean — true if the current platform supports PushAds (Android.)
|
| VERSION | Constant |
public static const VERSION:String = 1.0.0Version