StrictMode.ThreadPolicy
public
static
final
class
StrictMode.ThreadPolicy
extends Object
java.lang.Object | |
↳ | android.os.StrictMode.ThreadPolicy |
StrictMode
policy applied to a certain thread.
The policy is enabled by StrictMode.setThreadPolicy(ThreadPolicy)
. The current policy can be retrieved
with StrictMode.getThreadPolicy()
.
Note that multiple penalties may be provided and they're run in order from least to most severe (logging before process death, for example). There's currently no mechanism to choose different penalties for different detected actions.
Summary
Nested classes | |
---|---|
class |
StrictMode.ThreadPolicy.Builder
Creates |
Fields | |
---|---|
public
static
final
StrictMode.ThreadPolicy |
LAX
The lax policy which doesn't catch anything. |
Public methods | |
---|---|
String
|
toString()
Returns a string representation of the object. |
Inherited methods | |
---|---|
Fields
LAX
public static final StrictMode.ThreadPolicy LAX
The lax policy which doesn't catch anything.
Public methods
toString
public String toString ()
Returns a string representation of the object.
Returns | |
---|---|
String |
a string representation of the object. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.