-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
393 additions
and
20 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
docs/api/leakcanary-android-core/leakcanary/-leak-canary/-config/-builder/build.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [build](./build.md) | ||
|
||
# build | ||
|
||
`fun build(): `[`LeakCanary.Config`](../index.md) |
10 changes: 10 additions & 0 deletions
10
...oid-core/leakcanary/-leak-canary/-config/-builder/compute-retained-heap-size.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [computeRetainedHeapSize](./compute-retained-heap-size.md) | ||
|
||
# computeRetainedHeapSize | ||
|
||
`fun computeRetainedHeapSize(computeRetainedHeapSize: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.computeRetainedHeapSize](../compute-retained-heap-size.md) | ||
|
10 changes: 10 additions & 0 deletions
10
...droid-core/leakcanary/-leak-canary/-config/-builder/dump-heap-when-debugging.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [dumpHeapWhenDebugging](./dump-heap-when-debugging.md) | ||
|
||
# dumpHeapWhenDebugging | ||
|
||
`fun dumpHeapWhenDebugging(dumpHeapWhenDebugging: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.dumpHeapWhenDebugging](../dump-heap-when-debugging.md) | ||
|
10 changes: 10 additions & 0 deletions
10
...i/leakcanary-android-core/leakcanary/-leak-canary/-config/-builder/dump-heap.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [dumpHeap](./dump-heap.md) | ||
|
||
# dumpHeap | ||
|
||
`fun dumpHeap(dumpHeap: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.dumpHeap](../dump-heap.md) | ||
|
39 changes: 39 additions & 0 deletions
39
docs/api/leakcanary-android-core/leakcanary/-leak-canary/-config/-builder/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](./index.md) | ||
|
||
# Builder | ||
|
||
`class Builder` | ||
|
||
Builder for [LeakCanary.Config](../index.md) 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) | ||
``` | ||
|
||
### Functions | ||
|
||
| Name | Summary | | ||
|---|---| | ||
| [build](build.md) | `fun build(): `[`LeakCanary.Config`](../index.md) | | ||
| [computeRetainedHeapSize](compute-retained-heap-size.md) | `fun computeRetainedHeapSize(computeRetainedHeapSize: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`LeakCanary.Config.Builder`](./index.md) | | ||
| [dumpHeap](dump-heap.md) | `fun dumpHeap(dumpHeap: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`LeakCanary.Config.Builder`](./index.md) | | ||
| [dumpHeapWhenDebugging](dump-heap-when-debugging.md) | `fun dumpHeapWhenDebugging(dumpHeapWhenDebugging: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`LeakCanary.Config.Builder`](./index.md) | | ||
| [leakingObjectFinder](leaking-object-finder.md) | `fun leakingObjectFinder(leakingObjectFinder: LeakingObjectFinder): `[`LeakCanary.Config.Builder`](./index.md) | | ||
| [maxStoredHeapDumps](max-stored-heap-dumps.md) | `fun maxStoredHeapDumps(maxStoredHeapDumps: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`LeakCanary.Config.Builder`](./index.md) | | ||
| [metadataExtractor](metadata-extractor.md) | `fun metadataExtractor(metadataExtractor: MetadataExtractor): `[`LeakCanary.Config.Builder`](./index.md) | | ||
| [objectInspectors](object-inspectors.md) | `fun objectInspectors(objectInspectors: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<ObjectInspector>): `[`LeakCanary.Config.Builder`](./index.md) | | ||
| [onHeapAnalyzedListener](on-heap-analyzed-listener.md) | `fun onHeapAnalyzedListener(onHeapAnalyzedListener: `[`OnHeapAnalyzedListener`](../../../-on-heap-analyzed-listener/index.md)`): `[`LeakCanary.Config.Builder`](./index.md) | | ||
| [referenceMatchers](reference-matchers.md) | `fun referenceMatchers(referenceMatchers: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<ReferenceMatcher>): `[`LeakCanary.Config.Builder`](./index.md) | | ||
| [requestWriteExternalStoragePermission](request-write-external-storage-permission.md) | `fun requestWriteExternalStoragePermission(requestWriteExternalStoragePermission: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`LeakCanary.Config.Builder`](./index.md) | | ||
| [retainedVisibleThreshold](retained-visible-threshold.md) | `fun retainedVisibleThreshold(retainedVisibleThreshold: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`LeakCanary.Config.Builder`](./index.md) | |
10 changes: 10 additions & 0 deletions
10
...-android-core/leakcanary/-leak-canary/-config/-builder/leaking-object-finder.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [leakingObjectFinder](./leaking-object-finder.md) | ||
|
||
# leakingObjectFinder | ||
|
||
`fun leakingObjectFinder(leakingObjectFinder: LeakingObjectFinder): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.leakingObjectFinder](../leaking-object-finder.md) | ||
|
10 changes: 10 additions & 0 deletions
10
...-android-core/leakcanary/-leak-canary/-config/-builder/max-stored-heap-dumps.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [maxStoredHeapDumps](./max-stored-heap-dumps.md) | ||
|
||
# maxStoredHeapDumps | ||
|
||
`fun maxStoredHeapDumps(maxStoredHeapDumps: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.maxStoredHeapDumps](../max-stored-heap-dumps.md) | ||
|
10 changes: 10 additions & 0 deletions
10
...ary-android-core/leakcanary/-leak-canary/-config/-builder/metadata-extractor.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [metadataExtractor](./metadata-extractor.md) | ||
|
||
# metadataExtractor | ||
|
||
`fun metadataExtractor(metadataExtractor: MetadataExtractor): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.metadataExtractor](../metadata-extractor.md) | ||
|
10 changes: 10 additions & 0 deletions
10
...nary-android-core/leakcanary/-leak-canary/-config/-builder/object-inspectors.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [objectInspectors](./object-inspectors.md) | ||
|
||
# objectInspectors | ||
|
||
`fun objectInspectors(objectInspectors: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<ObjectInspector>): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.objectInspectors](../object-inspectors.md) | ||
|
10 changes: 10 additions & 0 deletions
10
...roid-core/leakcanary/-leak-canary/-config/-builder/on-heap-analyzed-listener.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [onHeapAnalyzedListener](./on-heap-analyzed-listener.md) | ||
|
||
# onHeapAnalyzedListener | ||
|
||
`fun onHeapAnalyzedListener(onHeapAnalyzedListener: `[`OnHeapAnalyzedListener`](../../../-on-heap-analyzed-listener/index.md)`): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.onHeapAnalyzedListener](../on-heap-analyzed-listener.md) | ||
|
10 changes: 10 additions & 0 deletions
10
...ary-android-core/leakcanary/-leak-canary/-config/-builder/reference-matchers.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [referenceMatchers](./reference-matchers.md) | ||
|
||
# referenceMatchers | ||
|
||
`fun referenceMatchers(referenceMatchers: `[`List`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<ReferenceMatcher>): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.referenceMatchers](../reference-matchers.md) | ||
|
10 changes: 10 additions & 0 deletions
10
...nary/-leak-canary/-config/-builder/request-write-external-storage-permission.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [requestWriteExternalStoragePermission](./request-write-external-storage-permission.md) | ||
|
||
# requestWriteExternalStoragePermission | ||
|
||
`fun requestWriteExternalStoragePermission(requestWriteExternalStoragePermission: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.requestWriteExternalStoragePermission](../request-write-external-storage-permission.md) | ||
|
10 changes: 10 additions & 0 deletions
10
...oid-core/leakcanary/-leak-canary/-config/-builder/retained-visible-threshold.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[leakcanary-android-core](../../../../index.md) / [leakcanary](../../../index.md) / [LeakCanary](../../index.md) / [Config](../index.md) / [Builder](index.md) / [retainedVisibleThreshold](./retained-visible-threshold.md) | ||
|
||
# retainedVisibleThreshold | ||
|
||
`fun retainedVisibleThreshold(retainedVisibleThreshold: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`LeakCanary.Config.Builder`](index.md) | ||
|
||
**See Also** | ||
|
||
[LeakCanary.Config.retainedVisibleThreshold](../retained-visible-threshold.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.