Package net.mready.picker
Class PhotoPicker.Builder
- java.lang.Object
-
- net.mready.picker.PhotoPicker.Builder
-
- Enclosing class:
- PhotoPicker
public static class PhotoPicker.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Intentbuild()Builds the picker intentPhotoPicker.BuildermaxHeight(int maxHeight)Specifies the maximum height of the resulting photoPhotoPicker.BuildermaxWidth(int maxWidth)Specifies the maximum width of the resulting photoPhotoPicker.BuilderpickerMode(int mode)Sets the picker mode using an int value for selectionPhotoPicker.Builderquality(int quality)Specifies the quality of the resulting photoPhotoPicker.Buildertitle(int resId)Sets the picker dialog title using a resource idPhotoPicker.Buildertitle(CharSequence title)Sets the picker dialog title using a CharSequence
-
-
-
Constructor Detail
-
Builder
public Builder(Context context)
Creates a builder for Photo Picker- Parameters:
context- the parent context
-
-
Method Detail
-
maxWidth
public PhotoPicker.Builder maxWidth(int maxWidth)
Specifies the maximum width of the resulting photo- Parameters:
maxWidth- maximum width- Returns:
- This Builder object to allow for chaining of calls to set methods
-
maxHeight
public PhotoPicker.Builder maxHeight(int maxHeight)
Specifies the maximum height of the resulting photo- Parameters:
maxHeight- maximum height- Returns:
- This Builder object to allow for chaining of calls to set methods
-
quality
public PhotoPicker.Builder quality(int quality)
Specifies the quality of the resulting photo- Parameters:
quality- image quality- Returns:
- This Builder object to allow for chaining of calls to set methods
-
title
public PhotoPicker.Builder title(@StringRes int resId)
Sets the picker dialog title using a resource id- Parameters:
resId- title resource- Returns:
- This Builder object to allow for chaining of calls to set methods
-
title
public PhotoPicker.Builder title(CharSequence title)
Sets the picker dialog title using a CharSequence- Parameters:
title- title- Returns:
- This Builder object to allow for chaining of calls to set methods
-
pickerMode
public PhotoPicker.Builder pickerMode(int mode)
Sets the picker mode using an int value for selection- Parameters:
mode- pickerMode- Returns:
- This Builder object to allow for chaining of calls to set methods
-
build
public Intent build()
Builds the picker intent- Returns:
- Photo Picker Intent
-
-