Class BundleListRetriever

  • All Implemented Interfaces:
    IBinder

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