Package com.google.android.exoplayer2
Interface Bundleable
-
- All Known Implementing Classes:
AbstractConcatenatedTimeline
,AdPlaybackState
,AdPlaybackState.AdGroup
,AudioAttributes
,ColorInfo
,Cue
,DefaultTrackSelector.Parameters
,DefaultTrackSelector.SelectionOverride
,DeviceInfo
,ExoPlaybackException
,FakeMediaSource.InitialTimeline
,FakeTimeline
,Format
,ForwardingTimeline
,HeartRating
,MaskingMediaSource.PlaceholderTimeline
,MediaItem
,MediaItem.ClippingConfiguration
,MediaItem.ClippingProperties
,MediaItem.LiveConfiguration
,MediaMetadata
,NoUidTimeline
,PercentageRating
,PlaybackException
,PlaybackParameters
,Player.Commands
,Player.PositionInfo
,Rating
,SinglePeriodAdTimeline
,SinglePeriodTimeline
,StarRating
,ThumbRating
,Timeline
,Timeline.Period
,Timeline.RemotableTimeline
,Timeline.Window
,TrackGroup
,TrackGroupArray
,TrackSelectionOverrides
,TrackSelectionOverrides.TrackSelectionOverride
,TrackSelectionParameters
,TracksInfo
,TracksInfo.TrackGroupInfo
,VideoSize
public interface Bundleable
Interface for classes whose instance can be stored in aBundle
bytoBundle()
and can be restored from theBundle
by using the staticCREATOR
field that implementsBundleable.Creator
.For example, a
Bundleable
classFoo
supports the following:Foo foo = ...; Bundle fooBundle = foo.toBundle(); Foo restoredFoo = Foo.CREATOR.fromBundle(fooBundle); assertThat(restoredFoo).isEqualTo(foo);
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Bundleable.Creator<T extends Bundleable>
Interface for the staticCREATOR
field ofBundleable
classes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Bundle
toBundle()
Returns aBundle
representing the information stored in this object.
-