StrictMode.AllowThreadDiskReads 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.
A convenience wrapper that takes the current ThreadPolicy
from #getThreadPolicy
, modifies it to permit disk reads, and sets the new policy with #setThreadPolicy
, returning the old policy so you can restore it at the end of a block.
[Android.Runtime.Register("allowThreadDiskReads", "()Landroid/os/StrictMode$ThreadPolicy;", "")]
public static Android.OS.StrictMode.ThreadPolicy? AllowThreadDiskReads ();
[<Android.Runtime.Register("allowThreadDiskReads", "()Landroid/os/StrictMode$ThreadPolicy;", "")>]
static member AllowThreadDiskReads : unit -> Android.OS.StrictMode.ThreadPolicy
Returns
the old policy, to be passed to setThreadPolicy to restore the policy.
- Attributes
Remarks
Java documentation for android.os.StrictMode.allowThreadDiskReads()
.
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.