Triggers an intent to choose a folder to which the files will be saved. The reference to SharedStorageDirectoryPicker cannot live longer than the activity of the registry.

Important: This is a Public Preview API. It may be changed or removed at any time.


Link copied to clipboard
constructor(registry: ActivityResultRegistry)


Link copied to clipboard

Callback which is responsible to inform about a Uri of the picked directory.


Link copied to clipboard
fun pickDirectory(startingDirectoryUri: Uri? = null, callback: SharedStorageDirectoryPicker.DirectoryPickerCallback)

Triggers an intent to pick the folder on the device to which the files with logs will be saved. The result of the operation is notified with the callback.