StrictMode.ThreadPolicy.Builder Constructors

Definition

Overloads

Name Description
StrictMode.ThreadPolicy.Builder()

Create a Builder that detects nothing and has no violations. (but note that Build() will default to enabling PenaltyLog() if no other penalties are specified)

StrictMode.ThreadPolicy.Builder(StrictMode+ThreadPolicy)

Initialize a Builder from an existing ThreadPolicy.

StrictMode.ThreadPolicy.Builder()

Create a Builder that detects nothing and has no violations. (but note that Build() will default to enabling PenaltyLog() if no other penalties are specified)

[Android.Runtime.Register(".ctor", "()V", "")]
public Builder();
Attributes

Remarks

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.

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

Applies to

StrictMode.ThreadPolicy.Builder(StrictMode+ThreadPolicy)

Initialize a Builder from an existing ThreadPolicy.

[Android.Runtime.Register(".ctor", "(Landroid/os/StrictMode$ThreadPolicy;)V", "")]
public Builder(Android.OS.StrictMode.ThreadPolicy? policy);
[<Android.Runtime.Register(".ctor", "(Landroid/os/StrictMode$ThreadPolicy;)V", "")>]
new Android.OS.StrictMode.ThreadPolicy.Builder : Android.OS.StrictMode.ThreadPolicy -> Android.OS.StrictMode.ThreadPolicy.Builder

Parameters

policy
StrictMode.ThreadPolicy

StrictMode.ThreadPolicy

Attributes

Remarks

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.

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

Applies to