{% setvar book_path %}/reference/kotlin/dokkatest/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ViewDebug.CapturedViewProperty

@Target(value = [ElementType.FIELD, ElementType.METHOD])
@Retention(value = RetentionPolicy.RUNTIME)
annotation 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 functions

abstract 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()

Public functions

retrieveReturn

abstract fun 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()

Returns
Boolean

true if we need the second level methods