次の方法で共有


StrictMode.SetThreadPolicy(StrictMode+ThreadPolicy) Method

Definition

Sets the policy for what actions on the current thread should be detected, as well as the penalty if such actions occur.

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

Parameters

policy
StrictMode.ThreadPolicy

the policy to put into place

Attributes

Remarks

Java documentation for android.os.StrictMode.setThreadPolicy(android.os.ThreadPolicy).

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