com.revmob.ads.notification
Class RevMobNotification

java.lang.Object
  extended by com.revmob.ads.notification.RevMobNotification
All Implemented Interfaces:
com.revmob.ads.internal.Ad

public class RevMobNotification
extends Object
implements com.revmob.ads.internal.Ad


Constructor Summary
RevMobNotification(android.app.Activity activity, int publisherIcon, RevMobAdsListener publisherListener, Calendar publisherFireDate)
           
 
Method Summary
 void cancel()
          If the notification was not loaded yet, it will not be scheduled automatically - The schedule method can still be called.
 boolean isLoaded()
          Check if the ad is loaded.
 void load()
          Load the ad data
 void load(String placementId)
          Load the ad data using a placement id.
static void openNotification(android.app.Activity currentActivity)
          Call this method in the onCreate method of the activity that will be opened when the user click in the notification.
 void schedule()
          Schedule the ad immediately, unless it is not loaded yet - If it is not loaded, it will schedule yourself as soon as it is loaded.
 void updateWithData(com.revmob.client.AdData advertisement)
          For internal usage.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevMobNotification

public RevMobNotification(android.app.Activity activity,
                          int publisherIcon,
                          RevMobAdsListener publisherListener,
                          Calendar publisherFireDate)
Method Detail

load

public void load()
Load the ad data


load

public void load(String placementId)
Load the ad data using a placement id.


updateWithData

public void updateWithData(com.revmob.client.AdData advertisement)
For internal usage.

Specified by:
updateWithData in interface com.revmob.ads.internal.Ad

isLoaded

public boolean isLoaded()
Check if the ad is loaded.

Returns:

cancel

public void cancel()
If the notification was not loaded yet, it will not be scheduled automatically - The schedule method can still be called.


schedule

public void schedule()
Schedule the ad immediately, unless it is not loaded yet - If it is not loaded, it will schedule yourself as soon as it is loaded.


openNotification

public static void openNotification(android.app.Activity currentActivity)
Call this method in the onCreate method of the activity that will be opened when the user click in the notification. In other words, the activity which you used to schedule the notification.

Parameters:
currentActivity: - the activity which you used to schedule the notification.


Copyright © 2013. All Rights Reserved.