|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRelativeLayout
com.vpon.adon.android.AdView
public final class AdView
A view containing an ad.
AdOn SDK just support HVGA and WVGA device.
Constructor Summary | |
---|---|
AdView(Context context)
Simple constructor to use when creating an advertisement view from code (not from a layout XML file). |
|
AdView(Context context,
AttributeSet attrs)
Constructor that is called when inflating an advertisment view from XML. |
|
AdView(Context context,
AttributeSet attrs,
int defStyle)
Constructor that is called when inflating an advertisment view from XML. |
Method Summary | |
---|---|
java.lang.String |
getVersion()
The String of AdOn SDK version. |
void |
pauseAdAutoRefresh()
Pause this view auto refresh ad function. |
void |
refreshAd()
Updates this view with a new ad. |
void |
restartAdAutoRefresh()
Restart this view auto refresh ad function. |
void |
setAdListener(AdListener listener)
Makes the listener receive notifications of when a new ad has arrived from AdOn and this view is about to display it. |
void |
setLicenseKey(java.lang.String licenseKey,
boolean autoRefreshAd)
Sets the licenseKey, autoRefreshAd, testMode to start first AdOn Ad request. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdView(Context context)
public AdView(Context context, AttributeSet attrs)
public AdView(Context context, AttributeSet attrs, int defStyle)
Method Detail |
---|
public java.lang.String getVersion()
public void setLicenseKey(java.lang.String licenseKey, boolean autoRefreshAd)
licensekey
- the unique publisher ID assigned to this application by AdOn.autoRefreshAd
- cause AdOn auto-refresh Ad during default time.public void setAdListener(AdListener listener)
adListener
- is the object to receive event notifications or null to stop getting notifications.AdListener
public void refreshAd()
public void pauseAdAutoRefresh()
public void restartAdAutoRefresh()
pauseAdAutoRefresh()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |