Added in API level 1

ViewDebug

open class ViewDebug
kotlin.Any
   ↳ android.view.ViewDebug

Various debugging/tracing tools related to View and the view hierarchy.

Summary

Nested classes

This annotation can be used to mark fields and methods to be dumped when the view is captured.

This annotation can be used to mark fields and methods to be dumped by the view server.

Defines a mapping from a flag to a String.

Defines a mapping from an int value to a String.

Constants
static Boolean

static Boolean

Public constructors

Public methods
open static Unit
dumpCapturedView(tag: String!, view: Any!)

Dump view info for id based instrument test generation (and possibly further data analysis).

open static Unit
startHierarchyTracing(prefix: String!, view: View!)

open static Unit
startRecyclerTracing(prefix: String!, view: View!)

open static Unit

open static Unit

open static Unit
trace(view: View!, type: ViewDebug.RecyclerTraceType!, vararg parameters: Int)

open static Unit

Constants

TRACE_HIERARCHY

Added in API level 1
Deprecated in API level 16
static val TRACE_HIERARCHY: Boolean

Deprecated: This flag is now unused

Value: false

TRACE_RECYCLER

Added in API level 1
Deprecated in API level 16
static val TRACE_RECYCLER: Boolean

Deprecated: This flag is now unused

Value: false

Public constructors

ViewDebug

ViewDebug()

Public methods

dumpCapturedView

Added in API level 3
open static fun dumpCapturedView(
    tag: String!,
    view: Any!
): Unit

Dump view info for id based instrument test generation (and possibly further data analysis). The results are dumped to the log.

Parameters
tag String!: for log
view Any!: for dump

startHierarchyTracing

Added in API level 1
Deprecated in API level 16
open static fun startHierarchyTracing(
    prefix: String!,
    view: View!
): Unit

Deprecated: This method is now unused and invoking it is a no-op

startRecyclerTracing

Added in API level 1
Deprecated in API level 16
open static fun startRecyclerTracing(
    prefix: String!,
    view: View!
): Unit

Deprecated: This method is now unused and invoking it is a no-op

stopHierarchyTracing

Added in API level 1
Deprecated in API level 16
open static fun stopHierarchyTracing(): Unit

Deprecated: This method is now unused and invoking it is a no-op

stopRecyclerTracing

Added in API level 1
Deprecated in API level 16
open static fun stopRecyclerTracing(): Unit

Deprecated: This method is now unused and invoking it is a no-op

trace

Added in API level 1
Deprecated in API level 16
open static fun trace(
    view: View!,
    type: ViewDebug.RecyclerTraceType!,
    vararg parameters: Int
): Unit

Deprecated: This method is now unused and invoking it is a no-op

trace

Added in API level 1
Deprecated in API level 16
open static fun trace(
    view: View!,
    type: ViewDebug.HierarchyTraceType!
): Unit

Deprecated: This method is now unused and invoking it is a no-op