Package io.rong.imkit.picture

## Class PictureSelector

- All Implemented Interfaces:

      public final class PictureSelector

- - ### Nested Class Summary

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

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static PictureSelector` | `create(Activity activity)` | Start PictureSelector for Activity.
    `static PictureSelector` | `create(Fragment fragment)` | Start PictureSelector for Fragment.
    `PictureSelectionModel` | `openGallery(int chooseMode)` |
    `PictureSelectionModel` | `openCamera(int chooseMode)` |
    `static List<LocalMedia>` | `obtainMultipleResult(Intent data)` |
    `static Intent` | `putIntentResult(List<LocalMedia> data)` |
    `static List<LocalMedia>` | `obtainSelectorList(Bundle bundle)` |
    `static void` | `saveSelectorList(Bundle outState, List<LocalMedia> selectedImages)` | put Selector LocalMedia
    `void` | `externalPictureVideo(String path)` | set preview video

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

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

- - ### Constructor Detail

  - ### Method Detail

    - #### create

           static PictureSelector create(Activity activity)

      Start PictureSelector for Activity.

      Returns:

        PictureSelector instance.

    - #### create

           static PictureSelector create(Fragment fragment)

      Start PictureSelector for Fragment.

      Returns:

        PictureSelector instance.

    - #### openGallery

           PictureSelectionModel openGallery(int chooseMode)

      Parameters:
        `chooseMode` - Select the type of picture you want，all or Picture or Video .
      Returns:

        LocalMedia PictureSelectionModel

    - #### openCamera

           PictureSelectionModel openCamera(int chooseMode)

      Parameters:
        `chooseMode` - Select the type of picture you want，Picture or Video.
      Returns:

        LocalMedia PictureSelectionModel

    - #### obtainMultipleResult

           static List<LocalMedia> obtainMultipleResult(Intent data)

      Returns:

        Selector Multiple LocalMedia

    - #### putIntentResult

           static Intent putIntentResult(List<LocalMedia> data)

      Returns:

        Put image Intent Data

    - #### obtainSelectorList

           static List<LocalMedia> obtainSelectorList(Bundle bundle)

      Returns:

        get Selector LocalMedia

    - #### saveSelectorList

           static void saveSelectorList(Bundle outState, List<LocalMedia> selectedImages)

      put Selector LocalMedia

    - #### externalPictureVideo

           void externalPictureVideo(String path)

      set preview video