Debug
class Debug
Utilities useful for debugging
Summary
Public constructors |
|---|
Debug() |
Public functions |
|
|---|---|
java-static Unit |
dumpLayoutParams(layout: ViewGroup!, str: String!) |
java-static Unit |
dumpLayoutParams(param: ViewGroup.LayoutParams!, str: String!) |
java-static Unit |
|
java-static String! |
getActionType(event: MotionEvent!)Convert a motion event action to a string |
java-static String! |
getCallFrom(n: Int)Get file name and location where this method is called. |
java-static String! |
getLoc()Get file name and location where this method is called. |
java-static String! |
Get file name and location where this method is called. |
java-static String! |
Get file name and location where this method is called. |
java-static String! |
This provides return the name of a view |
java-static String! |
This returns the name of a view given its id |
java-static String! |
This returns the name of a view given its id |
java-static String! |
getState(layout: MotionLayout!, stateId: Int)convert an id number to an id String useful in debugging |
java-static String! |
getState(layout: MotionLayout!, stateId: Int, len: Int)convert an id number to an id String useful in debugging |
java-static Unit |
This logs n elements in the stack |
java-static Unit |
printStack(msg: String!, n: Int)This logs n elements in the stack |
Public constructors
Public functions
dumpLayoutParams
java-static fun dumpLayoutParams(layout: ViewGroup!, str: String!): Unit
dumpLayoutParams
java-static fun dumpLayoutParams(param: ViewGroup.LayoutParams!, str: String!): Unit
| Parameters | |
|---|---|
param: ViewGroup.LayoutParams! |
|
str: String! |
getActionType
java-static fun getActionType(event: MotionEvent!): String!
Convert a motion event action to a string
| Parameters | |
|---|---|
event: MotionEvent! |
| Returns | |
|---|---|
String! |
getCallFrom
java-static fun getCallFrom(n: Int): String!
Get file name and location where this method is called. Formatting it such that it is clickable by Intellij
| Returns | |
|---|---|
String! |
(filename : line_no) |
getLoc
java-static fun getLoc(): String!
Get file name and location where this method is called. Formatting it such that it is clickable by Intellij
| Returns | |
|---|---|
String! |
(filename : line_no) |
getLocation
java-static fun getLocation(): String!
Get file name and location where this method is called. Formatting it such that it is clickable by Intellij
| Returns | |
|---|---|
String! |
(filename : line_no) |
getLocation2
java-static fun getLocation2(): String!
Get file name and location where this method is called. Formatting it such that it is clickable by Intellij
| Returns | |
|---|---|
String! |
(filename : line_no) |
getName
java-static fun getName(view: View!): String!
This provides return the name of a view
| Parameters | |
|---|---|
view: View! |
| Returns | |
|---|---|
String! |
name of view |
getName
java-static fun getName(context: Context!, id: IntArray<Int>!): String!
This returns the name of a view given its id
| Returns | |
|---|---|
String! |
name of view |
getName
java-static fun getName(context: Context!, id: Int): String!
This returns the name of a view given its id
| Returns | |
|---|---|
String! |
name of view |
getState
java-static fun getState(layout: MotionLayout!, stateId: Int): String!
convert an id number to an id String useful in debugging
| Parameters | |
|---|---|
layout: MotionLayout! |
|
stateId: Int |
| Returns | |
|---|---|
String! |
getState
java-static fun getState(layout: MotionLayout!, stateId: Int, len: Int): String!
convert an id number to an id String useful in debugging
| Parameters | |
|---|---|
layout: MotionLayout! |
|
stateId: Int |
|
len: Int |
trim if string >len |
| Returns | |
|---|---|
String! |