-
public final class HardwareConfigStateState and constants for interacting with HARDWARE on Android O+.
-
-
Field Summary
Fields Modifier and Type Field Description public final static booleanBLOCK_HARDWARE_BITMAPS_WHEN_GL_CONTEXT_MIGHT_NOT_BE_INITIALIZEDpublic final static booleanHARDWARE_BITMAPS_SUPPORTEDpublic final static intNO_MAX_FD_COUNTprivate static volatile HardwareConfigStateinstance
-
Method Summary
Modifier and Type Method Description static HardwareConfigStategetInstance()booleanareHardwareBitmapsBlocked()voidblockHardwareBitmaps()voidunblockHardwareBitmaps()booleanisHardwareConfigAllowed(int targetWidth, int targetHeight, boolean isHardwareConfigAllowed, boolean isExifOrientationRequired)-
-
Method Detail
-
getInstance
static HardwareConfigState getInstance()
-
areHardwareBitmapsBlocked
boolean areHardwareBitmapsBlocked()
-
blockHardwareBitmaps
void blockHardwareBitmaps()
-
unblockHardwareBitmaps
void unblockHardwareBitmaps()
-
isHardwareConfigAllowed
boolean isHardwareConfigAllowed(int targetWidth, int targetHeight, boolean isHardwareConfigAllowed, boolean isExifOrientationRequired)
-
-
-
-