class HumanReadables


Text converters for various Android objects.

Summary

Public functions

java-static String!
java-static String!

Transforms an arbitrary view into a string with (hopefully) enough debug info.

java-static String!
getViewHierarchyErrorMessage(
    rootView: View!,
    problemViews: (Mutable)List<View!>!,
    errorHeader: String!,
    problemViewSuffix: String!
)

Prints out an error message featuring the view hierarchy starting at the rootView.

java-static String!
getViewHierarchyErrorMessage(
    rootView: View!,
    problemViews: (Mutable)List<View!>!,
    errorHeader: String!,
    problemViewSuffix: String!,
    maxMsgLen: Int
)

Prints out an error message featuring the view hierarchy starting at the rootView.

Public functions

describe

java-static fun describe(c: Cursor!): String!

describe

java-static fun describe(v: View!): String!

Transforms an arbitrary view into a string with (hopefully) enough debug info.

Parameters
v: View!

nullable view

Returns
String!

a string for human consumption.

getViewHierarchyErrorMessage

java-static fun getViewHierarchyErrorMessage(
    rootView: View!,
    problemViews: (Mutable)List<View!>!,
    errorHeader: String!,
    problemViewSuffix: String!
): String!

Prints out an error message featuring the view hierarchy starting at the rootView.

Parameters
rootView: View!

the root of the hierarchy tree to print out.

problemViews: (Mutable)List<View!>!

list of the views that you would like to point out are causing the error message or null, if you want to skip this feature.

errorHeader: String!

the header of the error message (should contain the description of why the error is happening).

problemViewSuffix: String!

the message to append to the view description in the tree printout. Required if problemViews is supplied. Otherwise, null is acceptable.

Returns
String!

a string for human consumption.

getViewHierarchyErrorMessage

java-static fun getViewHierarchyErrorMessage(
    rootView: View!,
    problemViews: (Mutable)List<View!>!,
    errorHeader: String!,
    problemViewSuffix: String!,
    maxMsgLen: Int
): String!

Prints out an error message featuring the view hierarchy starting at the rootView.

Parameters
rootView: View!

the root of the hierarchy tree to print out.

problemViews: (Mutable)List<View!>!

list of the views that you would like to point out are causing the error message or null, if you want to skip this feature.

errorHeader: String!

the header of the error message (should contain the description of why the error is happening).

problemViewSuffix: String!

the message to append to the view description in the tree printout. Required if problemViews is supplied. Otherwise, null is acceptable.

maxMsgLen: Int

the maximum message length. Use MAX_VALUE to avoid truncating the message.

Returns
String!

a string for human consumption.