Package io.rong.imkit.picture.adapter

## Class PictureImageGridAdapter

- All Implemented Interfaces:

      public class PictureImageGridAdapter

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public class` | `PictureImageGridAdapter.HeaderViewHolder` |
    `public class` | `PictureImageGridAdapter.ViewHolder` |
    `public interface` | `PictureImageGridAdapter.OnPhotoSelectChangedListener` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public List<LocalMedia>` | `images` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PictureImageGridAdapter(Context context, PictureSelectionConfig config)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `List<LocalMedia>` | `getImages()` |
    `void` | `bindImagesData(List<LocalMedia> images)` |
    `void` | `bindSelectImages(List<LocalMedia> images)` |
    `List<LocalMedia>` | `getSelectedImages()` |
    `int` | `getItemViewType(int position)` |
    `ViewHolder` | `onCreateViewHolder(ViewGroup parent, int viewType)` |
    `void` | `onBindViewHolder(ViewHolder holder, int position)` |
    `int` | `getItemCount()` |
    `boolean` | `isSelected(LocalMedia image)` |
    `void` | `selectImage(PictureImageGridAdapter.ViewHolder holder, boolean isChecked, boolean isAnim)` | 选中的图片并执行动画
    `void` | `setOnPhotoSelectChangedListener(PictureImageGridAdapter.OnPhotoSelectChangedListener imageSelectChangedListener)` |
    `void` | `setShowCamera(boolean showCamera)` |

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

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

- - ### Constructor Detail

    - #### PictureImageGridAdapter

          PictureImageGridAdapter(Context context, PictureSelectionConfig config)

  - ### Method Detail

    - #### getImages

           List<LocalMedia> getImages()

    - #### bindImagesData

           void bindImagesData(List<LocalMedia> images)

    - #### bindSelectImages

           void bindSelectImages(List<LocalMedia> images)

    - #### getSelectedImages

           List<LocalMedia> getSelectedImages()

    - #### getItemViewType

           int getItemViewType(int position)

    - #### onCreateViewHolder

           ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)

    - #### onBindViewHolder

           void onBindViewHolder(ViewHolder holder, int position)

    - #### getItemCount

           int getItemCount()

    - #### isSelected

           boolean isSelected(LocalMedia image)

    - #### selectImage

           void selectImage(PictureImageGridAdapter.ViewHolder holder, boolean isChecked, boolean isAnim)

      选中的图片并执行动画

    - #### setOnPhotoSelectChangedListener

           void setOnPhotoSelectChangedListener(PictureImageGridAdapter.OnPhotoSelectChangedListener imageSelectChangedListener)

    - #### setShowCamera

           void setShowCamera(boolean showCamera)