com.sponsorpay.sdk.android.publisher
Class InterstitialActivity
java.lang.Object
Activity
com.sponsorpay.sdk.android.publisher.InterstitialActivity
public class InterstitialActivity
- extends Activity
Shows the SponsorPay mobile interstitial embedded in a WebView.
Will retrieve the interstitial's initial html content from the EXTRA_INITIAL_CONTENT_KEY
encoded into the
calling intent, and will load dependent content referenced with relative links using the base URL encoded as
EXTRA_BASE_DOMAIN_KEY
into the calling intent. The http cookie(s) to use will be retrieved from the String
array encoded as extra EXTRA_COOKIESTRINGS_KEY
The boolean value encoded as EXTRA_SHOULD_STAY_OPEN_KEY
into the calling intent will determine the
activity's behavior when the user is redirected outside the application. The default behavior is to close the
interstitial.
Method Summary |
protected void |
onCreate(Bundle savedInstanceState)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXTRA_SHOULD_STAY_OPEN_KEY
public static final java.lang.String EXTRA_SHOULD_STAY_OPEN_KEY
- See Also:
- Constant Field Values
EXTRA_INITIAL_CONTENT_KEY
public static final java.lang.String EXTRA_INITIAL_CONTENT_KEY
- See Also:
- Constant Field Values
EXTRA_BASE_DOMAIN_KEY
public static final java.lang.String EXTRA_BASE_DOMAIN_KEY
- See Also:
- Constant Field Values
EXTRA_COOKIESTRINGS_KEY
public static final java.lang.String EXTRA_COOKIESTRINGS_KEY
- See Also:
- Constant Field Values
mWebView
private WebView mWebView
mShouldStayOpen
private boolean mShouldStayOpen
InterstitialActivity
public InterstitialActivity()
onCreate
protected void onCreate(Bundle savedInstanceState)