SharedStorageDirectoryPicker

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.

Constructors

Link copied to clipboard
constructor(registry: ActivityResultRegistry)

Types

Link copied to clipboard

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

Functions

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.