ThreadPolicy
class ThreadPolicy
| kotlin.Any | |
| ↳ | android.os.StrictMode.ThreadPolicy |
StrictMode policy applied to a certain thread.
The policy is enabled by setThreadPolicy. The current policy can be retrieved with 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 | |
|---|---|
|
Creates |
|
| Public methods | |
|---|---|
| String |
toString()Returns a string representation of the object. |
| Properties | |
|---|---|
| static StrictMode.ThreadPolicy! |
The lax policy which doesn't catch anything. |
Public methods
toString
fun toString(): String
Returns a string representation of the object.
| Return | |
|---|---|
String |
a string representation of the object. |
Properties
LAX
static val LAX: StrictMode.ThreadPolicy!
The lax policy which doesn't catch anything.