Most visited

Recently visited

BundleCompat

public final class BundleCompat
extends Object

java.lang.Object
   ↳ android.support.v4.app.BundleCompat


Helper用于访问以向后兼容的方式在API级别4之后引入的 Bundle功能。

Summary

Public methods

static IBinder getBinder(Bundle bundle, String key)

一种方便的方法来处理所有Android版本 IBinderBundle

static void putBinder(Bundle bundle, String key, IBinder binder)

处理所有Android版本的 BundleIBinder便利方法。

Inherited methods

From class java.lang.Object

Public methods

getBinder

IBinder getBinder (Bundle bundle, 
                String key)

一个方便的方法来处理得到一个 IBinderBundle为所有Android版本。

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

void putBinder (Bundle bundle, 
                String key, 
                IBinder binder)

处理所有Android版本中 BundleIBinder便利方法。

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.

Hooray!