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 |
final long |
The time after which the ad is skippable, in microseconds. |
Public constructors |
|---|
|
Creates an instance. |
Public methods |
|
|---|---|
boolean |
|
static AdPlaybackState.SkipInfo |
fromBundle(Bundle bundle)Restores a |
int |
hashCode() |
Bundle |
toBundle()Returns a |
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
Public methods
fromBundle
public static AdPlaybackState.SkipInfo fromBundle(Bundle bundle)
Restores a SkipInfo from a Bundle.