共用方式為


SystemCleaner.Cleaner Method

Definition

Return a single Cleaner that's shared across the entire process.

[Android.Runtime.Register("cleaner", "()Ljava/lang/ref/Cleaner;", "", ApiSince=33)]
public static Java.Lang.Ref.Cleaner Cleaner ();
[<Android.Runtime.Register("cleaner", "()Ljava/lang/ref/Cleaner;", "", ApiSince=33)>]
static member Cleaner : unit -> Java.Lang.Ref.Cleaner

Returns

Attributes

Remarks

Return a single Cleaner that's shared across the entire process. Thread-safe. Unlike normal Cleaners, uncaught exceptions during cleaning will throw an uncaught exception from the daemon running the cleaning action. This will normally cause the process to crash, and thus cause the problem to be reported.

Java documentation for android.system.SystemCleaner.cleaner().

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