Stay organized with collections Save and categorize content based on your preferences.

Bundleable

@UnstableApi
public interface Bundleable

Known direct subclasses
AdPlaybackState.AdGroup

Represents a group of ads, with information about their states.

AdPlaybackState

Represents ad group times and information on the state and URIs of ads within each ad group.

AudioAttributes

Attributes for audio playback, which configure the underlying platform .

ColorInfo

Stores color info.

CommandButton

A button for a SessionCommand or Player.Command that can be displayed by controllers.

CueGroup

Class to represent the state of active Cues at a particular time.

Cue

Contains information about a specific cue, including textual content and formatting data.

DefaultTrackSelector.Parameters

Extends Parameters by adding fields that are specific to DefaultTrackSelector.

DefaultTrackSelector.SelectionOverride

A track selection override.

DeviceInfo

Information about the playback device.

Format

Represents a media format.

ImaServerSideAdInsertionMediaSource.AdsLoader.State

The state of the AdsLoader that can be used when resuming from the background.

LibraryResult

A result to be used with ListenableFuture for asynchronous calls between and MediaBrowser.

MediaItem.ClippingConfiguration

Optionally clips the media item to a custom start and end position.

MediaItem.LiveConfiguration

Live playback configuration.

MediaItem.RequestMetadata

Metadata that helps the player to understand a playback request represented by a .

MediaItem

Representation of a media item.

MediaLibraryService.LibraryParams

Parameters for the interaction between MediaBrowser and MediaLibrarySession.

MediaMetadata

Metadata of a MediaItem, playlist, or a combination of multiple sources of .

PlaybackException

Thrown when a non locally recoverable playback failure occurs.

PlaybackParameters

Parameters that apply to playback, including speed setting.

Player.Commands

A set of commands.

Player.PositionInfo

Position info describing a playback position involved in a discontinuity.

Rating

A rating for media content.

SessionCommand

A command that a MediaController can send to a MediaSession.

SessionCommands

A set of session commands.

SessionResult

A result to be used with ListenableFuture for asynchronous calls between and MediaController.

SessionToken

A token that represents an ongoing MediaSession or a service (, MediaLibraryService, or MediaBrowserServiceCompat).

Timeline.Period

Holds information about a period in a Timeline.

Timeline.Window

Holds information about a window in a Timeline.

Timeline

A flexible representation of the structure of media.

TrackGroupArray

An immutable array of TrackGroups.

TrackGroup

An immutable group of tracks available within a media stream.

TrackSelectionOverride

A track selection override, consisting of a TrackGroup and the indices of the tracks within the group that should be selected.

TrackSelectionParameters

Parameters for controlling track selection.

Tracks.Group

Information about a single group of tracks, including the underlying TrackGroup, the level to which each track is supported by the player, and whether any of the tracks are selected.

Tracks

Information about groups of tracks.

VideoSize

Represents the video size.

Known indirect subclasses
AbstractConcatenatedTimeline

Abstract base class for the concatenation of one or more Timelines.

DefaultTrackSelector.Parameters

Extends Parameters by adding fields that are specific to DefaultTrackSelector.

ExoPlaybackException

Thrown when a non locally recoverable playback failure occurs.

FakeMediaSource.InitialTimeline

A forwarding timeline to provide an initial timeline for fake multi window sources.

FakeTimeline

Fake Timeline which can be setup to return custom TimelineWindowDefinitions.

ForwardingTimeline

An overridable Timeline implementation forwarding all methods to another timeline.

HeartRating

A rating expressed as "heart" or "no heart".

MaskingMediaSource.PlaceholderTimeline

A timeline with one dynamic window with a period of indeterminate duration.

MediaItem.ClippingProperties

This class is deprecated.

Use ClippingConfiguration instead.

PercentageRating

A rating expressed as a percentage.

SinglePeriodAdTimeline

A Timeline for sources that have ads.

SinglePeriodTimeline

A Timeline consisting of a single period and static window.

StarRating

A rating expressed as a fractional number of stars.

ThumbRating

A rating expressed as "thumbs up" or "thumbs down".

Timeline.RemotableTimeline

A concrete class of Timeline to restore a Timeline instance from a sent by another process via IBinder.


Interface for classes whose instance can be stored in a Bundle by toBundle and can be restored from the Bundle by using the static CREATOR field that implements Bundleable.Creator.

For example, a Bundleable class Foo supports the following:

Foo foo = ...;
Bundle fooBundle = foo.toBundle();
Foo restoredFoo = Foo.CREATOR.fromBundle(fooBundle);
assertThat(restoredFoo).isEqualTo(foo);

Summary

Nested types

public interface Bundleable.Creator<T extends Bundleable>

Interface for the static CREATOR field of Bundleable classes.

Public methods

abstract Bundle

Returns a Bundle representing the information stored in this object.

Public methods

toBundle

abstract Bundle toBundle()

Returns a Bundle representing the information stored in this object.