This class was deprecated.
A builder that is used to configure and display the open file activity. This activity displays files and folders from the user's Drive. The activity can be used to display all files in the Drive, not just those your application has access to. Your application will be given access to the selected file.
To display the activity, pass the result of
#startIntentSenderForResult(). When the
activity completes, a successful response will include an extra
EXTRA_RESPONSE_DRIVE_ID with the selected
Note: you cannot use
#startActivity to invoke the activity. This will
|String||EXTRA_RESPONSE_DRIVE_ID||A successful result will return an extra by this
name which will contain the
Public Method Summary
Inherited Method Summary
public IntentSender build (GoogleApiClient apiClient)
from the builder attributes that can be used to start the Open File activity using
startIntentSenderForResult(IntentSender, int, Intent, int, int, int).
This method requires authorization with at least one of the following scopes:
public OpenFileActivityBuilder setActivityStartFolder (DriveId folder)
Sets the folder that the Activity will display initially. If not specified, it will default to the root of "My Drive".
public OpenFileActivityBuilder setActivityTitle (String title)
Sets the title displayed in the activity.
|title||the title to set on the activity (may not be null)|
public OpenFileActivityBuilder setMimeType (String mimeTypes)
Sets the MIME type filter which controls which kinds of files are selectable in the
file picker. If neither this nor
setSelectionFilter(Filter) method is called, all non-folder files will be
|mimeTypes||the mime types to show in the picker. May not be null. Passing a zero-length array is equivalent to not calling this method.|
public OpenFileActivityBuilder setSelectionFilter (Filter filter)
that controls which files are selectable in the file picker. Calling this method will
override previous filters.
The default filter restricts selection to files only:
|filter||the Filter a file should match to be selectable. May not be null.|