Class BundleListRetriever

  • All Implemented Interfaces:
    IBinder

    @Deprecated
    public final class BundleListRetriever
    extends Binder
    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);