com.netmera.mobile
Class NetmeraPopup

java.lang.Object
  extended by com.netmera.mobile.NetmeraPopup

public class NetmeraPopup
extends java.lang.Object

This is the class to manage, see and show pop-ups.


Nested Class Summary
static class NetmeraPopup.EventType
          Event types to filter pop-ups.
 
Constructor Summary
NetmeraPopup()
           
 
Method Summary
 java.util.Date getCreateDate()
           
 java.lang.String getEventType()
           
 boolean getIsSeen()
           
 java.lang.String getPopupContentHtml()
           
 java.lang.String getPopupId()
           
 java.util.Date getSendDate()
           
 java.lang.String getTitle()
           
 void setCreateDate(java.util.Date createDate)
           
 void setEventType(java.lang.String eventType)
           
 void setIsSeen(boolean isSeen)
           
 void setPopupContentHtml(java.lang.String popupContentHtml)
           
 void setPopupId(java.lang.String popupId)
           
 void setSeen(boolean isSeen)
           
 void setSendDate(java.util.Date sendDate)
           
 void setTitle(java.lang.String title)
           
 android.webkit.WebView show(android.app.Activity activity)
          If you call this method from your activity with Activity parameter, Netmera will create a WebView on the given Activity and show pop-up inside it.
 void show(android.webkit.WebView popupWebView)
          If you call this method, pop-up will be shown in the given WebView.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetmeraPopup

public NetmeraPopup()
Method Detail

show

public android.webkit.WebView show(android.app.Activity activity)
If you call this method from your activity with Activity parameter, Netmera will create a WebView on the given Activity and show pop-up inside it.

Parameters:
activity - pop-up activity
Returns:
webView

show

public void show(android.webkit.WebView popupWebView)
If you call this method, pop-up will be shown in the given WebView.

Parameters:
popupWebView - pop-up web view.

getPopupId

public java.lang.String getPopupId()

setPopupId

public void setPopupId(java.lang.String popupId)

getIsSeen

public boolean getIsSeen()

setIsSeen

public void setIsSeen(boolean isSeen)

getEventType

public java.lang.String getEventType()

setEventType

public void setEventType(java.lang.String eventType)

getPopupContentHtml

public java.lang.String getPopupContentHtml()

setPopupContentHtml

public void setPopupContentHtml(java.lang.String popupContentHtml)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getSendDate

public java.util.Date getSendDate()

setSendDate

public void setSendDate(java.util.Date sendDate)

getCreateDate

public java.util.Date getCreateDate()

setCreateDate

public void setCreateDate(java.util.Date createDate)

setSeen

public void setSeen(boolean isSeen)