HlsInterstitialsAdsLoader.AdsResumptionState


public class HlsInterstitialsAdsLoader.AdsResumptionState


The state of the given ads ID to resume playback at the given AdPlaybackState.

This state object can be bundled and unbundled while preserving an ads ID of type String.

Summary

Public fields

final String

The ads ID

Public constructors

AdsResumptionState(String adsId, AdPlaybackState adPlaybackState)

Creates a new instance.

Public fields

adsId

public final String adsId

The ads ID

Public constructors

AdsResumptionState

public AdsResumptionState(String adsId, AdPlaybackState adPlaybackState)

Creates a new instance.

Parameters
String adsId

The ads ID of the playback state.

AdPlaybackState adPlaybackState

The AdPlaybackState with the given adsId.

Throws
java.lang.IllegalArgumentException

Thrown if the passed in adsId is not equal to adsId.

Public methods

equals

public boolean equals(@Nullable Object o)

fromBundle

public static HlsInterstitialsAdsLoader.AdsResumptionState fromBundle(Bundle bundle)

hashCode

public int hashCode()

toBundle

public Bundle toBundle()