public static final class PhotoPicker.IntentBuilder
extends java.lang.Object
Constructor and Description |
---|
IntentBuilder(android.content.Context mContext) |
Modifier and Type | Method and Description |
---|---|
PhotoPicker.IntentBuilder |
enableCamera(java.lang.String fileName,
java.lang.String dirName)
Enables the camera function of photo picker.
|
PhotoPicker.IntentBuilder |
enableSinglePhoto(boolean enableSinglePhoto) |
void |
pickPhotos()
When everything is ready, start the photo picker activity.
|
PhotoPicker.IntentBuilder |
setCameraIcon(int resId)
Set the placeholder image for the camera button that appears as the first item in the grid view.
|
PhotoPicker.IntentBuilder |
setCheckBoxIcon(int mCheckBoxResId) |
PhotoPicker.IntentBuilder |
setFinishBtnStyle(int bgColor,
int txtColor)
Set the finish button style.
|
PhotoPicker.IntentBuilder |
setGridItemMargin(int gridItemMargin)
Set the margin of each photo item in the grid view in pixel.
|
PhotoPicker.IntentBuilder |
setMaxCount(int maxCount)
Set the maximum number of photos that can be selected.
|
PhotoPicker.IntentBuilder |
setNumOfColumns(int numOfColumns)
Set the number of columns that photos should be displayed in.
|
PhotoPicker.IntentBuilder |
setPhotoPickerTitle(java.lang.String title)
Set the title that should be displayed on the actionbar of photo picker view.
|
PhotoPicker.IntentBuilder |
setThumbnailSize(int thumbnailSize)
Set the thumbnail size of each photo displayed in the grid view.
|
public PhotoPicker.IntentBuilder setMaxCount(int maxCount)
maxCount
- The max number of photospublic PhotoPicker.IntentBuilder setNumOfColumns(int numOfColumns)
numOfColumns
- The number of columns in the grid viewpublic PhotoPicker.IntentBuilder setCameraIcon(int resId)
resId
- The drawable resource id of the placeholder imagepublic PhotoPicker.IntentBuilder setThumbnailSize(int thumbnailSize)
thumbnailSize
- The width & height of the grid itempublic PhotoPicker.IntentBuilder enableCamera(java.lang.String fileName, java.lang.String dirName)
showCamera
- True if camera function is enabled. Default value is truepublic PhotoPicker.IntentBuilder setGridItemMargin(int gridItemMargin)
gridItemMargin
- The margin in pixel.public PhotoPicker.IntentBuilder setFinishBtnStyle(int bgColor, int txtColor)
bgColor
- The background color of the hutton.txtColor
- The text color of the button.public PhotoPicker.IntentBuilder setPhotoPickerTitle(java.lang.String title)
title
- The title of the photo picker page.public PhotoPicker.IntentBuilder setCheckBoxIcon(int mCheckBoxResId)
public PhotoPicker.IntentBuilder enableSinglePhoto(boolean enableSinglePhoto)
public void pickPhotos()