CreateFileActivityOptions
Options used to configure settings for the create file dialog activity. These options
control the settings for the newly created file (i.e initial metadata / contents) and the
dialog itself (e.g. starting folder, etc).
To create the create file dialog activity with a specified configuration, pass the options
to
newCreateFileActivityIntentSender(CreateFileActivityOptions)
. The returned
IntentSender
can be used to create an activity that displays the user's Drive files / folders. The user
can then select the folder he/she wishes to create the new file in.
In order to successfully create the new file, the following setters must be called:
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
The ID to get access to the DriveId
associated with the newly created file.
Constant Value:
"response_drive_id"
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`CreateFileActivityOptions` configures settings for creating new files in Google Drive, including initial metadata, contents, and dialog behavior."],["To use it, create an `IntentSender` with `newCreateFileActivityIntentSender()` and pass in the configured `CreateFileActivityOptions`."],["Before creating the file, you must set the initial file contents and metadata using `setInitialDriveContents()` and `setInitialMetadata()`."],["`EXTRA_RESPONSE_DRIVE_ID` provides access to the `DriveId` of the newly created file."]]],["`CreateFileActivityOptions` configures settings for a file creation dialog. Use `newCreateFileActivityIntentSender` to launch the dialog, letting users select a destination folder. Successful file creation requires setting `initialDriveContents` (via `createContents()`) and `initialMetadata` (using `MetadataChangeSet.Builder`). `EXTRA_RESPONSE_DRIVE_ID` provides access to the `DriveId` of the new file. `CreateFileActivityOptions.Builder` helps create instances of the options.\n"]]