public class PlaybackState extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<PlaybackState> |
CREATOR |
boolean |
isActiveDevice |
boolean |
isPlaying |
boolean |
isRepeating |
boolean |
isShuffling |
long |
positionMs |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
PlaybackState(boolean isPlaying,
boolean isRepeating,
boolean isShuffling,
boolean isActiveDevice,
long positionMs) |
protected |
PlaybackState(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public final boolean isPlaying
public final boolean isRepeating
public final boolean isShuffling
public final boolean isActiveDevice
public final long positionMs
public static final Parcelable.Creator<PlaybackState> CREATOR
public PlaybackState(boolean isPlaying, boolean isRepeating, boolean isShuffling, boolean isActiveDevice, long positionMs)
protected PlaybackState(Parcel in)
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public int describeContents()
describeContents
in interface Parcelable