BundleCompat
class BundleCompat
kotlin.Any | |
↳ | androidx.core.app.BundleCompat |
Helper for accessing features in Bundle
.
Summary
Public methods | |
---|---|
static IBinder? |
A convenience method to handle getting an |
static Unit |
A convenience method to handle putting an |
Public methods
getBinder
@Nullable static fun getBinder(
@NonNull bundle: Bundle,
@Nullable 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 . |
Return | |
---|---|
IBinder? |
The IBinder that was obtained. |
putBinder
static fun putBinder(
@NonNull bundle: Bundle,
@Nullable key: String?,
@Nullable 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. |