Package io.rong.imkit.picture.config

## Class PictureMimeType

- All Implemented Interfaces:

      public final class PictureMimeType

- - ### Nested Class Summary

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

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static String` | `JPEG` |
    `public final static String` | `PNG` |
    `public final static String` | `DCIM` |
    `public final static String` | `MIME_TYPE_IMAGE` |
    `public final static String` | `MIME_TYPE_VIDEO` |
    `public final static String` | `MIME_TYPE_PREFIX_IMAGE` |
    `public final static String` | `MIME_TYPE_PREFIX_VIDEO` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PictureMimeType()` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `final static int` | `ofAll()` |
    `final static int` | `ofImage()` |
    `final static int` | `ofVideo()` |
    `final static String` | `ofPNG()` |
    `final static String` | `ofJPEG()` |
    `final static String` | `ofBMP()` |
    `final static String` | `ofGIF()` |
    `final static String` | `ofWEBP()` |
    `final static String` | `of3GP()` |
    `final static String` | `ofMP4()` |
    `final static String` | `ofMPEG()` |
    `final static String` | `ofAVI()` |
    `static int` | `isPictureType(String pictureType)` |
    `static boolean` | `isGif(String mimeType)` | 是否是gif
    `static boolean` | `isVideo(String pictureType)` | 是否是视频
    `static boolean` | `eqVideo(String mimeType)` | 是否是视频
    `static boolean` | `eqImage(String mimeType)` | 是否是图片
    `static boolean` | `isHttp(String path)` | 是否是网络图片
    `static String` | `fileToType(File file)` | 判断文件类型是图片还是视频
    `static boolean` | `mimeToEqual(String p1, String p2)` | is type Equal
    `static boolean` | `isMimeTypeSame(String oldMimeType, String newMimeType)` | 是否是同一类型
    `static String` | `getImageMimeType(String path)` |
    `static String` | `getMimeType(Context context, Uri uri)` | 根据uri获取MIME_TYPE
    `static int` | `getMimeType(String mimeType)` | Picture or video
    `static String` | `getLastImgType(String path)` | 获取图片后缀
    `static String` | `getLastImgSuffix(String mineType)` | 获取图片后缀
    `static String` | `s(Context context, String mimeType)` | 根据不同的类型，返回不同的错误提示

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

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

- - ### Constructor Detail

    - #### PictureMimeType

          PictureMimeType()

  - ### Method Detail

    - #### ofAll

           final static int ofAll()

    - #### ofImage

           final static int ofImage()

    - #### ofVideo

           final static int ofVideo()

    - #### ofPNG

           final static String ofPNG()

    - #### ofJPEG

           final static String ofJPEG()

    - #### ofBMP

           final static String ofBMP()

    - #### ofGIF

           final static String ofGIF()

    - #### ofWEBP

           final static String ofWEBP()

    - #### of3GP

           final static String of3GP()

    - #### ofMP4

           final static String ofMP4()

    - #### ofMPEG

           final static String ofMPEG()

    - #### ofAVI

           final static String ofAVI()

    - #### isPictureType

          @Deprecated() static int isPictureType(String pictureType)

    - #### isGif

           static boolean isGif(String mimeType)

      是否是gif

    - #### isVideo

          @Deprecated() static boolean isVideo(String pictureType)

      是否是视频

    - #### eqVideo

           static boolean eqVideo(String mimeType)

      是否是视频

    - #### eqImage

           static boolean eqImage(String mimeType)

      是否是图片

    - #### isHttp

           static boolean isHttp(String path)

      是否是网络图片

    - #### fileToType

           static String fileToType(File file)

      判断文件类型是图片还是视频

    - #### mimeToEqual

          @Deprecated() static boolean mimeToEqual(String p1, String p2)

      is type Equal

    - #### isMimeTypeSame

           static boolean isMimeTypeSame(String oldMimeType, String newMimeType)

      是否是同一类型

    - #### getImageMimeType

           static String getImageMimeType(String path)

    - #### getMimeType

           static String getMimeType(Context context, Uri uri)

      根据uri获取MIME_TYPE

    - #### getMimeType

           static int getMimeType(String mimeType)

      Picture or video

    - #### getLastImgType

           static String getLastImgType(String path)

      获取图片后缀

    - #### getLastImgSuffix

           static String getLastImgSuffix(String mineType)

      获取图片后缀

    - #### s

           static String s(Context context, String mimeType)

      根据不同的类型，返回不同的错误提示