Added in API level 3

CapturedViewProperty

@Target([AnnotationTarget.FIELD, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) class CapturedViewProperty
android.view.ViewDebug.CapturedViewProperty

This annotation can be used to mark fields and methods to be dumped when the view is captured. Methods with this annotation must have no arguments and must return a valid type of data.

Summary

Public constructors
CapturedViewProperty(retrieveReturn: Boolean)

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

Properties
Boolean

When retrieveReturn is true, we need to retrieve second level methods e.

Public constructors

CapturedViewProperty

Added in API level 3
CapturedViewProperty(retrieveReturn: Boolean)

This annotation can be used to mark fields and methods to be dumped when the view is captured. Methods with this annotation must have no arguments and must return a valid type of data.

Properties

retrieveReturn

Added in API level 3
val retrieveReturn: Boolean

When retrieveReturn is true, we need to retrieve second level methods e.g., we need myView.getFirstLevelMethod().getSecondLevelMethod() we will set retrieveReturn = true on the annotation of myView.getFirstLevelMethod()

Return
Boolean true if we need the second level methods