|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectActivity
com.sponsorpay.sdk.android.publisher.OfferWallActivity
public class OfferWallActivity
Retrieves the SponsorPay mobile Offer Wall and shows it embedded in a WebView.
| Nested Class Summary | |
|---|---|
class |
OfferWallActivity.MobileOfferWallTemplate
|
class |
OfferWallActivity.OfferWallTemplate
|
class |
OfferWallActivity.UnlockOfferWallTemplate
|
| Field Summary | |
|---|---|
static java.lang.String |
EXTRA_KEYS_VALUES_MAP
Key for extracting a map of custom key/values to add to the parameters on the OfferWall request URL from the extras bundle. |
static java.lang.String |
EXTRA_OFFERWALL_TYPE
|
static java.lang.String |
EXTRA_OVERRIDEN_APP_ID
Key for extracting the App ID from the extras bundle. |
static java.lang.String |
EXTRA_SHOULD_STAY_OPEN_KEY
Key for extracting the value of mShouldStayOpen from the extras bundle. |
static java.lang.String |
EXTRA_USERID_KEY
Key for extracting the current user ID from the extras bundle. |
protected java.util.Map<java.lang.String,java.lang.String> |
mCustomKeysValues
Map of custom key/values to add to the parameters on the OfferWall request URL. |
private AlertDialog |
mErrorDialog
Error dialog. |
protected HostInfo |
mHostInfo
Information about the hosting application and device. |
private ProgressDialog |
mProgressDialog
Loading progress dialog. |
private boolean |
mShouldStayOpen
Whether this activity should stay open or close when the user is redirected outside the application by clicking on an offer. |
private OfferWallActivity.OfferWallTemplate |
mTemplate
|
protected UserId |
mUserId
The user ID (after extracting it from the extra) |
protected WebView |
mWebView
Full-size web view within the activity |
static java.lang.String |
OFFERWALL_TYPE_MOBILE
|
static java.lang.String |
OFFERWALL_TYPE_UNLOCK
|
static int |
RESULT_CODE_NO_STATUS_CODE
The result code that is returned when the Offer Wall's parsed exit scheme does not contain a status code. |
| Constructor Summary | |
|---|---|
OfferWallActivity()
|
|
| Method Summary | |
|---|---|
protected void |
fetchPassedExtras()
|
private java.lang.String |
generateUrl()
|
private void |
instantiateTemplate()
|
protected void |
onCreate(Bundle savedInstanceState)
Overriden from Activity. |
protected void |
onPause()
|
protected void |
onResume()
Overriden from Activity. |
protected void |
showErrorDialog(SponsorPayPublisher.UIStringIdentifier error)
Displays an error dialog with the passed error message on top of the activity. |
protected void |
showErrorDialog(java.lang.String error)
Displays an error dialog with the passed error message on top of the activity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EXTRA_OFFERWALL_TYPE
public static final java.lang.String OFFERWALL_TYPE_MOBILE
public static final java.lang.String OFFERWALL_TYPE_UNLOCK
public static final java.lang.String EXTRA_USERID_KEY
public static final java.lang.String EXTRA_SHOULD_STAY_OPEN_KEY
mShouldStayOpen from the extras bundle.
public static final java.lang.String EXTRA_OVERRIDEN_APP_ID
public static final java.lang.String EXTRA_KEYS_VALUES_MAP
public static final int RESULT_CODE_NO_STATUS_CODE
protected WebView mWebView
protected UserId mUserId
protected HostInfo mHostInfo
private boolean mShouldStayOpen
protected java.util.Map<java.lang.String,java.lang.String> mCustomKeysValues
private ProgressDialog mProgressDialog
private AlertDialog mErrorDialog
private OfferWallActivity.OfferWallTemplate mTemplate
| Constructor Detail |
|---|
public OfferWallActivity()
| Method Detail |
|---|
protected void onCreate(Bundle savedInstanceState)
Activity. Upon activity start, extract the user ID from the extra,
create the web view and setup the interceptor for the web view exit-request.
savedInstanceState - Android's savedInstanceStateprivate void instantiateTemplate()
protected void fetchPassedExtras()
protected void onPause()
protected void onResume()
Activity. Loads or reloads the contents of the offer wall webview.
private java.lang.String generateUrl()
protected void showErrorDialog(SponsorPayPublisher.UIStringIdentifier error)
error - Error message to show.protected void showErrorDialog(java.lang.String error)
error - Error message to show.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||