StrictMode.AllowThreadDiskWrites 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 both disk reads & writes, 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("allowThreadDiskWrites", "()Landroid/os/StrictMode$ThreadPolicy;", "")]
public static Android.OS.StrictMode.ThreadPolicy? AllowThreadDiskWrites ();
[<Android.Runtime.Register("allowThreadDiskWrites", "()Landroid/os/StrictMode$ThreadPolicy;", "")>]
static member AllowThreadDiskWrites : unit -> Android.OS.StrictMode.ThreadPolicy
Returns
the old policy, to be passed to #setThreadPolicy
to restore the policy at the
end of a block
- Attributes
Remarks
Java documentation for android.os.StrictMode.allowThreadDiskWrites()
.
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.