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 aBundlebytoBundle()and can be restored from theBundleby using the staticCREATORfield that implementsBundleable.Creator.For example, a
BundleableclassFoosupports 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 interfaceBundleable.Creator<T extends Bundleable>Deprecated.Interface for the staticCREATORfield ofBundleableclasses.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BundletoBundle()Deprecated.Returns aBundlerepresenting the information stored in this object.
-