Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/leakcanary/LeakCanary/Config/requestWriteExternalStoragePermission

requestWriteExternalStoragePermission

[androidJvm]\ val requestWriteExternalStoragePermission: Boolean = false

LeakCanary always attempts to store heap dumps on the external storage if the WRITE_EXTERNAL_STORAGE is already granted, and otherwise uses the app storage. If the WRITE_EXTERNAL_STORAGE permission is not granted and requestWriteExternalStoragePermission is true, then LeakCanary will display a notification to ask for that permission.

Defaults to false because that permission notification can be annoying.