Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
philips77 committed Jan 21, 2025
1 parent 100319c commit b9514d2
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ public FileData(String fileName) {
}
}

/**
* A custom Activity result contract to create a new document.
* <p>
* The one form {@link androidx.activity.result.contract.ActivityResultContracts} requires
* setting the MIME TYPE at the time of registration and cannot be changed later.
* <p>
* This contract allows to set the MIME TYPE when the file name is known.
* @see FileData
*/
static class CreateDocument extends ActivityResultContract<FileData, Uri> {

@NonNull
Expand Down

0 comments on commit b9514d2

Please sign in to comment.