Package zendesk.belvedere
Class BelvedereUi.ImageStreamBuilder
- java.lang.Object
-
- zendesk.belvedere.BelvedereUi.ImageStreamBuilder
-
- Enclosing class:
- BelvedereUi
public static class BelvedereUi.ImageStreamBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
showPopup(AppCompatActivity activity)
Show the ImageStream to the user.BelvedereUi.ImageStreamBuilder
withCameraIntent()
Allow the user to select an image from the camera.BelvedereUi.ImageStreamBuilder
withDocumentIntent(java.lang.String contentType, boolean allowMultiple)
Allow the user to select files from the system.BelvedereUi.ImageStreamBuilder
withExtraItems(java.util.List<MediaResult> mediaResults)
Pass in files that are not selected but should show up in the ImageStream.BelvedereUi.ImageStreamBuilder
withMaxFileSize(long maxFileSize)
Define a maximum file size.BelvedereUi.ImageStreamBuilder
withSelectedItems(java.util.List<MediaResult> mediaResults)
Pass in files that are should be marked as selected.BelvedereUi.ImageStreamBuilder
withTouchableItems(int... ids)
Specify a list of ids from your activity that should be clickable although the ImageStream is visible.
-
-
-
Method Detail
-
withCameraIntent
public BelvedereUi.ImageStreamBuilder withCameraIntent()
Allow the user to select an image from the camera.
-
withDocumentIntent
public BelvedereUi.ImageStreamBuilder withDocumentIntent(java.lang.String contentType, boolean allowMultiple)
Allow the user to select files from the system.- Parameters:
contentType
- restrict the files to a content type.allowMultiple
- allow the user to select multiple attachments in a third party app or the system file picker
-
withSelectedItems
public BelvedereUi.ImageStreamBuilder withSelectedItems(java.util.List<MediaResult> mediaResults)
Pass in files that are should be marked as selected.
-
withExtraItems
public BelvedereUi.ImageStreamBuilder withExtraItems(java.util.List<MediaResult> mediaResults)
Pass in files that are not selected but should show up in the ImageStream.
-
withTouchableItems
public BelvedereUi.ImageStreamBuilder withTouchableItems(int... ids)
Specify a list of ids from your activity that should be clickable although the ImageStream is visible.
-
withMaxFileSize
public BelvedereUi.ImageStreamBuilder withMaxFileSize(long maxFileSize)
Define a maximum file size. Files bigger than the provided value are not selectable.- Parameters:
maxFileSize
- maximum file size in bytes
-
showPopup
public void showPopup(AppCompatActivity activity)
Show the ImageStream to the user.
-
-