BundleCompat
public final class BundleCompat
Helper for accessing features in Bundle.
Summary
Public methods |
|
|---|---|
static @Nullable IBinder |
@ReplaceWith(expression = "bundle.getBinder(key)")This method is deprecated. Call getBinder directly. |
static void |
@ReplaceWith(expression = "bundle.putBinder(key, binder)")This method is deprecated. Call putBinder directly. |
Public methods
@ReplaceWith(expression = "bundle.getBinder(key)")
public static @Nullable IBindergetBinder(@NonNull Bundle bundle, @Nullable String key)
A convenience method to handle getting an IBinder inside a Bundle for all Android versions.