Aracılığıyla paylaş


ClassLoader.RegisterAsParallelCapable Method

Definition

Registers the caller as parallel capable.

[Android.Runtime.Register("registerAsParallelCapable", "()Z", "", ApiSince=24)]
protected static bool RegisterAsParallelCapable ();
[<Android.Runtime.Register("registerAsParallelCapable", "()Z", "", ApiSince=24)>]
static member RegisterAsParallelCapable : unit -> bool

Returns

true if the caller is successfully registered as parallel capable and false if otherwise.

Attributes

Remarks

Registers the caller as parallel capable. The registration succeeds if and only if all of the following conditions are met: <ol> <li> no instance of the caller has been created</li> <li> all of the super classes (except class Object) of the caller are registered as parallel capable</li> </ol>

Note that once a class loader is registered as parallel capable, there is no way to change it back.

Added in 1.7.

Java documentation for java.lang.ClassLoader.registerAsParallelCapable().

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