java.lang.Object | |
↳ | com.google.android.gms.drive.OpenFileActivityOptions.Builder |
Builder used to create a new instance of OpenFileActivityOptions
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build the
CreateShortcutFileActivityOptions with the current options. | |||||||||||
Sets the folder that the open file dialog activity will initially display to
folder . | |||||||||||
Sets the title of the dialog activity to
title . | |||||||||||
Sets the mime-type filter to
mimeTypes . | |||||||||||
Sets the
Filter that is used to control which files will be selectable in the open
file dialog activity to filter . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Build the CreateShortcutFileActivityOptions
with the current options.
Returns | |
---|---|
OpenFileActivityOptions |
Throws | |
---|---|
IllegalStateException |
if both setMimeType(List) and setSelectionFilter(Filter) were called
|
Sets the folder that the open 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 |
Returns | |
---|---|
OpenFileActivityOptions.Builder |
Sets the title of the dialog activity to title
.
Parameters | |
---|---|
title |
String |
Returns | |
---|---|
OpenFileActivityOptions.Builder |
Sets the mime-type filter to mimeTypes
. This defines what types of files will be
selectable in the open file dialog activity. Using a zero-length array is equivalent to not
calling this method at all.
If neither this method nor setSelectionFilter(Filter)
are called, all non-folder
files will be selectable.
Note: This method cannot be used with setSelectionFilter(Filter)
. Doing so will
throw an IllegalStateException
when build()
is called.
Parameters | |
---|---|
mimeTypes |
List |
Returns | |
---|---|
OpenFileActivityOptions.Builder |
Sets the Filter
that is used to control which files will be selectable in the open
file dialog activity to filter
.
The default filter restricts the selection to files only, i.e.
Filters.not(Filters.eq(SearchableField.MIME_TYPE, DriveFolder.MIME_TYPE))
Note: This method cannot be used with setMimeType(List)
. Doing so will throw an
IllegalStateException
when build()
is called.
Parameters | |
---|---|
filter |
Filter |
Returns | |
---|---|
OpenFileActivityOptions.Builder |