BundleCompat

Added in 1.1.0
Deprecated in 1.11.0

class BundleCompat


Helper for accessing features in Bundle.

Summary

Public functions

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

A convenience method to handle getting an IBinder inside a Bundle for all Android versions.

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

A convenience method to handle putting an IBinder inside a Bundle for all Android versions.

Public functions

getBinder

Added in 1.1.0
Deprecated in 1.11.0
java-static fun getBinder(bundle: Bundle, key: String?): IBinder?

A convenience method to handle getting 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

Added in 1.1.0
Deprecated in 1.11.0
java-static fun putBinder(bundle: Bundle, key: String?, binder: IBinder?): Unit

A convenience method to handle putting 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.