Freigeben über


StrictMode.SetVmPolicy(StrictMode+VmPolicy) Method

Definition

Sets the policy for what actions in the VM process (on any thread) should be detected, as well as the penalty if such actions occur.

[Android.Runtime.Register("setVmPolicy", "(Landroid/os/StrictMode$VmPolicy;)V", "")]
public static void SetVmPolicy (Android.OS.StrictMode.VmPolicy? policy);
[<Android.Runtime.Register("setVmPolicy", "(Landroid/os/StrictMode$VmPolicy;)V", "")>]
static member SetVmPolicy : Android.OS.StrictMode.VmPolicy -> unit

Parameters

policy
StrictMode.VmPolicy

the policy to put into place

Attributes

Remarks

Java documentation for android.os.StrictMode.setVmPolicy(android.os.VmPolicy).

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