@Immutable @LevelUpApi(contract=INTERNAL) public final class Interstitial extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Interstitial.ClaimAction
Represents an interstitial that can be claimed by the user.
|
static class |
Interstitial.FeedbackAction
Represents an interstitial that requests feedback from the user.
|
static interface |
Interstitial.InterstitialAction
Interface for the different types of actions.
|
static class |
Interstitial.ShareAction
Represents an interstitial that can be shared by the user.
|
static class |
Interstitial.UrlAction
Represents an interstitial that contains a URL that can be visited by the user.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Interstitial> |
CREATOR
Implements the
Parcelable interface. |
static String |
TYPE_CLAIM
The type returned from
getType() if this is a claim Interstitial. |
static String |
TYPE_FEEDBACK
The type returned from
getType() if this is a customer feedback Interstitial. |
static String |
TYPE_NAVIGATION
The type returned from
getType() if this is a navigation Interstitial. |
static String |
TYPE_NO_ACTION
The type returned from
getType() if this is a no_action Interstitial. |
static String |
TYPE_SHARE
The type returned from
getType() if this is a share Interstitial. |
static String |
TYPE_URL
The type returned from
getType() if this is a URL Interstitial. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
Interstitial(Interstitial.InterstitialAction action,
String calloutText,
String descriptionHtml,
String imageUrl,
String title,
String type) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
<T extends Interstitial.InterstitialAction> |
getAction() |
String |
getCalloutText()
The text to prompt the user to view this interstitial.
|
String |
getDescriptionHtml()
The description (encoded in HTML) of the interstitial.
|
String |
getImageUrl()
The base URL to the image for this interstitial.
|
String |
getTitle()
The title of the interstitial.
|
String |
getType()
The type of the interstitial.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<Interstitial> CREATOR
Parcelable
interface.public static final String TYPE_CLAIM
getType()
if this is a claim Interstitial.public static final String TYPE_FEEDBACK
getType()
if this is a customer feedback Interstitial.public static final String TYPE_NAVIGATION
getType()
if this is a navigation Interstitial. The
interstitial will include a URL representing an in-app screen to which the user can navigate.public static final String TYPE_NO_ACTION
getType()
if this is a no_action Interstitial. A No_Action
interstitial requires no action from the user, but provides information.public static final String TYPE_SHARE
getType()
if this is a share Interstitial.public static final String TYPE_URL
getType()
if this is a URL Interstitial.public final <T extends Interstitial.InterstitialAction> T getAction()
T
- The type of Interstitial.InterstitialAction
to return.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public String getCalloutText()
public String getDescriptionHtml()
public String getImageUrl()
public String getTitle()
public String getType()
NOTE: This could return any of the recognized types (or a currently unsupported type). This
is mostly intended to be used to determine what type will be returned from getAction()
.
TYPE_CLAIM
,
TYPE_FEEDBACK
,
TYPE_NAVIGATION
,
TYPE_NO_ACTION
,
TYPE_SHARE
,
TYPE_URL