Package com.castlabs.android.adverts
Class AdRequest
- java.lang.Object
-
- com.castlabs.android.adverts.AdRequest
-
- All Implemented Interfaces:
Parcelable
public final class AdRequest extends Object implements Parcelable
Container class for Ad requests.- Since:
- 3.2.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<AdRequest>CREATORBundlerequeststatic StringSCHEDULE_DELAY_MS_KEYKey for identifying the default time offset that will be added to the current position when manually scheduling adsstatic StringTAG_URL_KEYAd tag for (client-side) IMA requests.-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(Object obj)voidwriteToParcel(Parcel out, int flags)
-
-
-
Field Detail
-
TAG_URL_KEY
public static final String TAG_URL_KEY
Ad tag for (client-side) IMA requests.- See Also:
- Constant Field Values
-
request
@Nullable public final Bundle request
-
SCHEDULE_DELAY_MS_KEY
public static final String SCHEDULE_DELAY_MS_KEY
Key for identifying the default time offset that will be added to the current position when manually scheduling ads- See Also:
- Constant Field Values
-
CREATOR
public static final Parcelable.Creator<AdRequest> CREATOR
-
-
Constructor Detail
-
AdRequest
public AdRequest(@NonNull Bundle request)Create ads request with ads specific parameters stored in the provided Bundle- Parameters:
request- The bundle with ads specific parameters
-
-
Method Detail
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel out, int flags)
- Specified by:
writeToParcelin interfaceParcelable
-
-