AdFilters
classAdFilters: Parcelable
| kotlin.Any | |
| ↳ | android.adservices.common.AdFilters |
A container class for filters which are associated with an ad.
If any of the filters in an AdFilters instance are not satisfied, the associated ad will not be eligible for ad selection. Filters are optional ad parameters and are not required as part of AdData.
Summary
| Nested classes | |
|---|---|
|
Builder for creating |
|
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Boolean |
Checks whether the |
| AppInstallFilters? |
Gets the |
| FrequencyCapFilters? |
Gets the |
| Int |
hashCode()Returns the hash of the |
| String |
toString()Returns a string representation of the object. |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<AdFilters!> | |
Public methods
describeContents
fundescribeContents(): Int
Deprecated: Deprecated in Java.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
equals
funequals(other: Any?): Boolean
Deprecated: Deprecated in Java.
Checks whether the AdFilters objects represent the same set of filters.
| Parameters | |
|---|---|
obj |
the reference object with which to compare. |
| Return | |
|---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getAppInstallFilters
fungetAppInstallFilters(): AppInstallFilters?
Deprecated: Deprecated in Java.
Gets the AppInstallFilters instance that represents all app install filters for the ad.
If null, there are no app install filters which apply to the ad.
getFrequencyCapFilters
fungetFrequencyCapFilters(): FrequencyCapFilters?
Deprecated: Deprecated in Java.
Gets the FrequencyCapFilters instance that represents all frequency cap filters for the ad.
If null, there are no frequency cap filters which apply to the ad.
hashCode
funhashCode(): Int
Deprecated: Deprecated in Java.
Returns the hash of the AdFilters object's data.
| Return | |
|---|---|
Int |
a hash code value for this object. |
toString
funtoString(): String
Deprecated: Deprecated in Java.
Returns a string representation of the object.
| Return | |
|---|---|
String |
a string representation of the object. |
writeToParcel
funwriteToParcel(
dest: Parcel,
flags: Int
): Unit
Deprecated: Deprecated in Java.
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest |
Parcel: This value cannot be null. |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following:
|