Package io.rong.imkit.picture

## Class PictureSelectionModel

- All Implemented Interfaces:

      public class PictureSelectionModel

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PictureSelectionModel(PictureSelector selector, int chooseMode)` |
    `PictureSelectionModel(PictureSelector selector, int chooseMode, boolean camera)` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `PictureSelectionModel` | `setRequestedOrientation(int requestedOrientation)` | Change the desired orientation of this activity.
    `PictureSelectionModel` | `loadImageEngine(ImageEngine engine)` |
    `PictureSelectionModel` | `selectionMode(int selectionMode)` |
    `PictureSelectionModel` | `maxSelectNum(int maxSelectNum)` |
    `PictureSelectionModel` | `minSelectNum(int minSelectNum)` |
    `PictureSelectionModel` | `isSingleDirectReturn(boolean isSingleDirectReturn)` |
    `PictureSelectionModel` | `imageSpanCount(int imageSpanCount)` |
    `PictureSelectionModel` | `cameraFileName(String fileName)` | Camera custom local file name # Such as xxx.
    `PictureSelectionModel` | `isZoomAnim(boolean zoomAnim)` |
    `PictureSelectionModel` | `isCamera(boolean isCamera)` |
    `PictureSelectionModel` | `isGif(boolean isGif)` |
    `PictureSelectionModel` | `previewImage(boolean enablePreview)` |
    `PictureSelectionModel` | `previewVideo(boolean enPreviewVideo)` |
    `PictureSelectionModel` | `isNotPreviewDownload(boolean isNotPreviewDownload)` |
    `PictureSelectionModel` | `querySpecifiedFormatSuffix(String specifiedFormat)` |
    `PictureSelectionModel` | `selectionMedia(List<LocalMedia> selectionMedia)` |
    `PictureSelectionModel` | `isAndroidQTransform(boolean isAndroidQTransform)` | # If you want to handle the Android Q path, if not, just return the uri， The getAndroidQToPath(); field will be empty
    `void` | `forResult(int requestCode)` | Start to select media and wait for result.
    `void` | `forResult(int requestCode, boolean isAll)` |
    `void` | `forResult(int requestCode, int enterAnim, int exitAnim)` | # replace for setPictureWindowAnimationStyle(); Start to select media and wait for result.
    `PictureSelectionModel` | `videoDurationLimit(int duration)` | 不可发送video时长limit
    `PictureSelectionModel` | `gifSizeLimit(int limit)` | 不可发送gif图片大小

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PictureSelectionModel

          PictureSelectionModel(PictureSelector selector, int chooseMode)

    - #### PictureSelectionModel

          PictureSelectionModel(PictureSelector selector, int chooseMode, boolean camera)

  - ### Method Detail

    - #### setRequestedOrientation

           PictureSelectionModel setRequestedOrientation(int requestedOrientation)

      Change the desired orientation of this activity. If the activity is currently in the foreground or otherwise impacting the screen orientation, the screen will immediately be changed (possibly causing the activity to be restarted). Otherwise, this will be used the next time the activity is visible.

      Parameters:
        `requestedOrientation` - An orientation constant as used in ActivityInfo.

    - #### loadImageEngine

           PictureSelectionModel loadImageEngine(ImageEngine engine)

      Parameters:
        `engine` - Image Load the engine

    - #### selectionMode

           PictureSelectionModel selectionMode(int selectionMode)

      Parameters:
        `selectionMode` - PictureSelector Selection model and PictureConfig.MULTIPLE or PictureConfig.

    - #### maxSelectNum

           PictureSelectionModel maxSelectNum(int maxSelectNum)

      Parameters:
        `maxSelectNum` - PictureSelector max selection

    - #### minSelectNum

           PictureSelectionModel minSelectNum(int minSelectNum)

      Parameters:
        `minSelectNum` - PictureSelector min selection

    - #### isSingleDirectReturn

           PictureSelectionModel isSingleDirectReturn(boolean isSingleDirectReturn)

      Parameters:
        `isSingleDirectReturn` - Select whether to return directly

    - #### imageSpanCount

           PictureSelectionModel imageSpanCount(int imageSpanCount)

      Parameters:
        `imageSpanCount` - PictureSelector image span count

    - #### cameraFileName

           PictureSelectionModel cameraFileName(String fileName)

      Camera custom local file name # Such as xxx.png

    - #### isZoomAnim

           PictureSelectionModel isZoomAnim(boolean zoomAnim)

      Parameters:
        `zoomAnim` - Picture list zoom anim

    - #### isCamera

           PictureSelectionModel isCamera(boolean isCamera)

      Parameters:
        `isCamera` - Whether to open camera button

    - #### isGif

           PictureSelectionModel isGif(boolean isGif)

      Parameters:
        `isGif` - Whether to open gif

    - #### previewImage

           PictureSelectionModel previewImage(boolean enablePreview)

      Parameters:
        `enablePreview` - Do you want to preview the picture?

    - #### previewVideo

           PictureSelectionModel previewVideo(boolean enPreviewVideo)

      Parameters:
        `enPreviewVideo` - Do you want to preview the video?

    - #### isNotPreviewDownload

           PictureSelectionModel isNotPreviewDownload(boolean isNotPreviewDownload)

      Parameters:
        `isNotPreviewDownload` - Previews do not show downloads

    - #### querySpecifiedFormatSuffix

           PictureSelectionModel querySpecifiedFormatSuffix(String specifiedFormat)

      Parameters:
        `specifiedFormat` - get image format

    - #### selectionMedia

           PictureSelectionModel selectionMedia(List<LocalMedia> selectionMedia)

      Parameters:
        `selectionMedia` - Select the selected picture set

    - #### isAndroidQTransform

           PictureSelectionModel isAndroidQTransform(boolean isAndroidQTransform)

      # If you want to handle the Android Q path, if not, just return the uri， The getAndroidQToPath(); field will be empty

    - #### forResult

           void forResult(int requestCode)

      Start to select media and wait for result.

      Parameters:
        `requestCode` - Identity of the request Activity or Fragment.

    - #### forResult

          @Deprecated() void forResult(int requestCode, boolean isAll)

    - #### forResult

          @Deprecated() void forResult(int requestCode, int enterAnim, int exitAnim)

      # replace for setPictureWindowAnimationStyle(); Start to select media and wait for result.

      Parameters:
        `requestCode` - Identity of the request Activity or Fragment.

    - #### videoDurationLimit

           PictureSelectionModel videoDurationLimit(int duration)

      不可发送video时长limit

      Parameters:
        `duration` - 单位秒

    - #### gifSizeLimit

           PictureSelectionModel gifSizeLimit(int limit)

      不可发送gif图片大小