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 BundleableInterface 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>Interface for the staticCREATORfield ofBundleableclasses.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BundletoBundle()Returns aBundlerepresenting the information stored in this object.
-