共用方式為


Bundle.SetClassLoader(ClassLoader) Method

Definition

Changes the ClassLoader this Bundle uses when instantiating objects.

[Android.Runtime.Register("setClassLoader", "(Ljava/lang/ClassLoader;)V", "")]
public void SetClassLoader (Java.Lang.ClassLoader? loader);
[<Android.Runtime.Register("setClassLoader", "(Ljava/lang/ClassLoader;)V", "")>]
member this.SetClassLoader : Java.Lang.ClassLoader -> unit

Parameters

loader
ClassLoader

An explicit ClassLoader to use when instantiating objects inside of the Bundle.

Attributes

Remarks

Changes the ClassLoader this Bundle uses when instantiating objects.

Java documentation for android.os.Bundle.setClassLoader(java.lang.ClassLoader).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to