Package com.google.android.exoplayer2
Interface Bundleable
-
- All Known Implementing Classes:
AbstractConcatenatedTimeline
,AdPlaybackState
,AdPlaybackState.AdGroup
,AudioAttributes
,ColorInfo
,Cue
,CueGroup
,DefaultTrackSelector.Parameters
,DefaultTrackSelector.SelectionOverride
,DeviceInfo
,ExoPlaybackException
,FakeMediaSource.InitialTimeline
,FakeMultiPeriodLiveTimeline
,FakeTimeline
,Format
,ForwardingTimeline
,HeartRating
,ImaServerSideAdInsertionMediaSource.AdsLoader.State
,MaskingMediaSource.PlaceholderTimeline
,MediaItem
,MediaItem.AdsConfiguration
,MediaItem.ClippingConfiguration
,MediaItem.ClippingProperties
,MediaItem.DrmConfiguration
,MediaItem.LiveConfiguration
,MediaItem.LocalConfiguration
,MediaItem.RequestMetadata
,MediaItem.Subtitle
,MediaItem.SubtitleConfiguration
,MediaMetadata
,PercentageRating
,PlaybackException
,PlaybackParameters
,Player.Commands
,Player.PositionInfo
,Rating
,SinglePeriodAdTimeline
,SinglePeriodTimeline
,StarRating
,StreamKey
,ThumbRating
,Timeline
,Timeline.Period
,Timeline.RemotableTimeline
,Timeline.Window
,TrackGroup
,TrackGroupArray
,Tracks
,Tracks.Group
,TrackSelectionOverride
,TrackSelectionParameters
,VideoSize
@Deprecated public interface Bundleable
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.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>
Deprecated.Interface for the staticCREATOR
field ofBundleable
classes.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Bundle
toBundle()
Deprecated.Returns aBundle
representing the information stored in this object.
-