Android.OS.StrictMode Members

The members of Android.OS.StrictMode are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
AllowThreadDiskReads() : StrictMode.ThreadPolicy
A convenience wrapper that takes the current NoType:android/os/StrictMode$ThreadPolicy;Href=../../../reference/android/os/StrictMode.ThreadPolicy.html from StrictMode.GetThreadPolicy, modifies it to permit disk reads, and sets the new policy with StrictMode.SetThreadPolicy(.ThreadPolicy), returning the old policy so you can restore it at the end of a block.
static
AllowThreadDiskWrites() : StrictMode.ThreadPolicy
A convenience wrapper that takes the current NoType:android/os/StrictMode$ThreadPolicy;Href=../../../reference/android/os/StrictMode.ThreadPolicy.html from StrictMode.GetThreadPolicy, modifies it to permit both disk reads & writes, and sets the new policy with StrictMode.SetThreadPolicy(.ThreadPolicy), returning the old policy so you can restore it at the end of a block.
static
EnableDefaults()
Enable the recommended StrictMode defaults, with violations just being logged.
static
GetThreadPolicy() : StrictMode.ThreadPolicy
Returns the current thread's policy.
static
GetVmPolicy() : StrictMode.VmPolicy
Gets the current VM policy.
static
NoteSlowCall(string)
For code to note that it's slow.
static
SetThreadPolicy(StrictMode.ThreadPolicy)
Sets the policy for what actions on the current thread should be detected, as well as the penalty if such actions occur.
static
SetVmPolicy(StrictMode.VmPolicy)
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.