AdPlaybackState.SkipInfo


public final class AdPlaybackState.SkipInfo


Information about skipping an ad.

Summary

Public fields

final @Nullable String

The identifier for the label to be displayed in the UI, or null if unset.

final long

The duration for which the skip control should be shown, in microseconds, or TIME_UNSET if it should be shown until the ad ends.

final long

The time after which the ad is skippable, in microseconds.

Public constructors

SkipInfo(long skipOffsetUs, long skipDurationUs, @Nullable String labelId)

Creates an instance.

Public methods

boolean
static AdPlaybackState.SkipInfo

Restores a SkipInfo from a Bundle.

int
Bundle

Returns a Bundle representing the information stored in this object.

Public fields

labelId

public final @Nullable String labelId

The identifier for the label to be displayed in the UI, or null if unset.

skipDurationUs

public final long skipDurationUs

The duration for which the skip control should be shown, in microseconds, or TIME_UNSET if it should be shown until the ad ends.

skipOffsetUs

public final long skipOffsetUs

The time after which the ad is skippable, in microseconds.

Public constructors

SkipInfo

public SkipInfo(long skipOffsetUs, long skipDurationUs, @Nullable String labelId)

Creates an instance.

Public methods

equals

public boolean equals(@Nullable Object o)

fromBundle

public static AdPlaybackState.SkipInfo fromBundle(Bundle bundle)

Restores a SkipInfo from a Bundle.

hashCode

public int hashCode()

toBundle

public Bundle toBundle()

Returns a Bundle representing the information stored in this object.