java.lang.Object |
↳ |
com.google.android.gms.drive.CreateFileActivityOptions.Builder |
Class Overview
Builder used to create a new instance of CreateFileActivityOptions
.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
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()
|
|
Fields
Public Constructors
public
CreateFileActivityOptions.Builder
()
Public Methods
Builds the CreateShortcutFileActivityOptions
with the current options.
Sets the folder that the create file dialog activity will initially display to folder
. If not specified, it will default to the root "My Drive" folder. The activity
supports navigation from this folder to other folders.
Parameters |
folder |
DriveId |
Sets the title of the dialog activity to title
.
Sets the initial contents for the new file to driveContents
. In order to create the
file with empty contents, pass in null
. It is recommended that files with a mime-type
that does not support having a zero-byte file (e.g. an image or PDF) is created as a
non-empty file.
driveContents
must be obtained through createContents()
. Once this method returns, driveContents
will
be persisted and closed. In order to continue editing the file's contents, they must be
opened again with openFile(DriveFile, int)
or openFile(DriveFile, int, OpenFileCallback)
.
Parameters |
driveContents |
DriveContents |