Package zendesk.belvedere
Class MediaIntent.DocumentIntentBuilder
- java.lang.Object
-
- zendesk.belvedere.MediaIntent.DocumentIntentBuilder
-
- Enclosing class:
- MediaIntent
public static class MediaIntent.DocumentIntentBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description MediaIntent.DocumentIntentBuilder
allowMultiple(boolean allowMultiple)
Allow to user to select multiple files.MediaIntent
build()
Create theMediaIntent
MediaIntent.DocumentIntentBuilder
contentType(java.lang.String contentType)
Restrict the selection to a content type.MediaIntent.DocumentIntentBuilder
contentTypes(java.util.List<java.lang.String> contentTypes)
Restrict the selection to the specified content types.void
open(Activity activity)
Fire the intent.void
open(Fragment fragment)
Fire the intent.
-
-
-
Method Detail
-
build
public MediaIntent build()
Create theMediaIntent
-
contentType
public MediaIntent.DocumentIntentBuilder contentType(java.lang.String contentType)
Restrict the selection to a content type. Only one of the following should be called as they are mutually exclusive:MediaIntent.DocumentIntentBuilder.contentType(String)
MediaIntent.DocumentIntentBuilder.contentTypes(List)
-
contentTypes
public MediaIntent.DocumentIntentBuilder contentTypes(java.util.List<java.lang.String> contentTypes)
Restrict the selection to the specified content types. This can be used when allowing the selection of files from a disjoint set (e.g. "image/*" and "text/*"), in which case the content type is set to "*/*". Only one of the following should be called as they are mutually exclusive:MediaIntent.DocumentIntentBuilder.contentType(String)
MediaIntent.DocumentIntentBuilder.contentTypes(List)
- Parameters:
contentTypes
- the allowed content types
-
allowMultiple
public MediaIntent.DocumentIntentBuilder allowMultiple(boolean allowMultiple)
Allow to user to select multiple files.
-
open
public void open(Fragment fragment)
Fire the intent.
-
open
public void open(Activity activity)
Fire the intent.
-
-