//leakcanary-repo/leakcanary/LeakCanary/Config/Builder
Builder¶
[androidJvm]\ class Builder
Builder for LeakCanary.Config intended to be used only from Java code.
Usage:
LeakCanary.Config config = LeakCanary.getConfig().newBuilder()
.retainedVisibleThreshold(3)
.build();
LeakCanary.setConfig(config);
For idiomatic Kotlin use copy()
method instead:
LeakCanary.config = LeakCanary.config.copy(retainedVisibleThreshold = 3)