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

BundleListRetriever

@UnstableApi
class BundleListRetriever : 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);

Summary

Public constructors

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

Public functions

java-static ImmutableList<Bundle!>!
getList(binder: IBinder!)

Gets a list of Bundles from a BundleListRetriever.

Protected functions

Boolean
onTransact(code: Int, data: Parcel!, reply: Parcel?, flags: Int)

Inherited Constants

From android.os.IBinder
const Int
DUMP_TRANSACTION = 1598311760
const Int
const Int
const Int
const Int
const Int
LIKE_TRANSACTION = 1598835019
const Int
PING_TRANSACTION = 1599098439
const Int
TWEET_TRANSACTION = 1599362900

Inherited functions

From android.os.Binder
Unit
attachInterface(owner: IInterface!, descriptor: String!)
native java-static Long
native java-static Long
Unit
dump(fd: FileDescriptor!, args: Array<String!>!)
Unit
native java-static Unit
native java-static Int
native java-static Int
java-static Int
java-static UserHandle!
native java-static Int
String!
Boolean
java-static Unit
Unit
linkToDeath(recipient: IBinder.DeathRecipient!, flags: Int)
Boolean
IInterface!
native java-static Unit
native java-static Unit
native java-static Long
Boolean
transact(code: Int, data: Parcel!, reply: Parcel!, flags: Int)
Boolean
unlinkToDeath(recipient: IBinder.DeathRecipient!, flags: Int)
From android.os.IBinder

Public constructors

BundleListRetriever

BundleListRetriever(list: (Mutable)List<Bundle!>!)

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

Public functions

getList

java-static fun getList(binder: IBinder!): ImmutableList<Bundle!>!

Gets a list of Bundles from a BundleListRetriever.

Parameters
binder: IBinder!

A binder interface backed by BundleListRetriever.

Returns
ImmutableList<Bundle!>!

The list of Bundles.

Protected functions

onTransact

protected fun onTransact(code: Int, data: Parcel!, reply: Parcel?, flags: Int): Boolean
Throws
android.os.RemoteException: android.os.RemoteException