@UnstableApi
class BundleUtil


Utilities for Bundle.

Summary

Public functions

java-static IBinder?
getBinder(bundle: Bundle!, key: String?)

Gets an IBinder inside a Bundle for all Android versions.

java-static Unit
putBinder(bundle: Bundle!, key: String?, binder: IBinder?)

Puts an IBinder inside a Bundle for all Android versions.

Public functions

getBinder

java-static fun getBinder(bundle: Bundle!, key: String?): IBinder?

Gets an IBinder inside a Bundle for all Android versions.

Parameters
bundle: Bundle!

The bundle to get the IBinder.

key: String?

The key to use while getting the IBinder.

Returns
IBinder?

The IBinder that was obtained.

putBinder

java-static fun putBinder(bundle: Bundle!, key: String?, binder: IBinder?): Unit

Puts an IBinder inside a Bundle for all Android versions.

Parameters
bundle: Bundle!

The bundle to insert the IBinder.

key: String?

The key to use while putting the IBinder.

binder: IBinder?

The IBinder to put.