StrictMode.SetThreadPolicy(StrictMode+ThreadPolicy) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.