Back to Exoplayer

BundleListRetriever (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/BundleListRetriever.html

latest6.5 KB
Original Source

Package com.google.android.exoplayer2

Class BundleListRetriever


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classBundleListRetrieverextends[Binder](https://developer.android.com/reference/android/os/Binder.html "class or interface in android.os")

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.

A Binder to transfer a list of Bundles across processes by splitting the list into multiple transactions.

Note: Using this class causes synchronous binder calls in the opposite direction regardless of the "oneway" property.

Example usage:

// Sender
 List<Bundle> list = ...;
 IBinder binder = new BundleListRetriever(list);
 Bundle bundle = new Bundle();
 bundle.putBinder("list", binder);

 // Receiver
 Bundle bundle = ...; // Received from the sender
 IBinder binder = bundle.getBinder("list");
 List<Bundle> list = BundleListRetriever.getList(binder);

Nested Class Summary

- 

Nested classes/interfaces inherited from interface android.os.IBinder

IBinder.DeathRecipient

Field Summary

- 

Fields inherited from interface android.os.IBinder

DUMP_TRANSACTION, FIRST_CALL_TRANSACTION, FLAG_ONEWAY, INTERFACE_TRANSACTION, LAST_CALL_TRANSACTION, LIKE_TRANSACTION, PING_TRANSACTION, TWEET_TRANSACTION

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | BundleListRetriever​(List<Bundle> list) | Deprecated.

Creates a Binder to send a list of Bundles to another process. |

Method Summary

All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | static ImmutableList<Bundle> | getList​(IBinder binder) | Deprecated.

Gets a list of Bundles from a BundleListRetriever. | | protected boolean | onTransact​(int code, Parcel data, Parcel reply, int flags) | Deprecated. |

- 

Methods inherited from class android.os.Binder

attachInterface, clearCallingIdentity, clearCallingWorkSource, dump, dump, dumpAsync, flushPendingCommands, getCallingPid, getCallingUid, getCallingUidOrThrow, getCallingUserHandle, getCallingWorkSourceUid, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, pingBinder, queryLocalInterface, restoreCallingIdentity, restoreCallingWorkSource, setCallingWorkSourceUid, transact, unlinkToDeath

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

BundleListRetriever

public BundleListRetriever​([List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Bundle](https://developer.android.com/reference/android/os/Bundle.html?is-external=true "class or interface in android.os")> list)

Deprecated.

Creates a Binder to send a list of Bundles to another process.

Method Detail

- 

onTransact

protected boolean onTransact​(int code,[Parcel](https://developer.android.com/reference/android/os/Parcel.html "class or interface in android.os")data,
                             @Nullable[Parcel](https://developer.android.com/reference/android/os/Parcel.html "class or interface in android.os")reply,
                             int flags)
                      throws[RemoteException](https://developer.android.com/reference/android/os/RemoteException.html "class or interface in android.os")

Deprecated. Overrides:onTransact in class BinderThrows:RemoteException

- 

getList

public static[ImmutableList](https://guava.dev/releases/31.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true "class or interface in com.google.common.collect")<[Bundle](https://developer.android.com/reference/android/os/Bundle.html "class or interface in android.os")> getList​([IBinder](https://developer.android.com/reference/android/os/IBinder.html?is-external=true "class or interface in android.os")binder)

Deprecated.

Gets a list of Bundles from a BundleListRetriever. Parameters:binder - A binder interface backed by BundleListRetriever.Returns:The list of Bundles.