java.lang.Object | |
↳ | com.google.android.gms.drive.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:
setInitialDriveContents(DriveContents)
with DriveContents
that were
created using createContents()
.
setInitialMetadata(MetadataChangeSet)
with a MetadataChangeSet
that
was created via MetadataChangeSet.Builder
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CreateFileActivityOptions.Builder | Builder used to create a new instance of CreateFileActivityOptions . |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | EXTRA_RESPONSE_DRIVE_ID | The ID to get access to the DriveId associated with the newly created file. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The ID to get access to the DriveId
associated with the newly created file.