Class PhotoPicker.Builder

  • Enclosing class:
    PhotoPicker

    public static class PhotoPicker.Builder
    extends Object
    • 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