public class

MediaUtils

extends Object
java.lang.Object
   ↳ com.facebook.common.media.MediaUtils

Class Overview

Utility class.

Summary

Fields
public static final Map<String, String> ADDITIONAL_ALLOWED_MIME_TYPES
Public Constructors
MediaUtils()
Public Methods
static String extractMime(String path)
static boolean isNonNativeSupportedMimeType(String mimeType)
static boolean isPhoto(String mimeType)
static boolean isThreeD(String mimeType)
static boolean isVideo(String mimeType)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final Map<String, String> ADDITIONAL_ALLOWED_MIME_TYPES

Public Constructors

public MediaUtils ()

Public Methods

public static String extractMime (String path)

public static boolean isNonNativeSupportedMimeType (String mimeType)

Returns
  • true if the mime type is one of our whitelisted mimetypes that we support beyond what the native platform supports.

public static boolean isPhoto (String mimeType)

public static boolean isThreeD (String mimeType)

public static boolean isVideo (String mimeType)