HardwareConfigState

class HardwareConfigState

State and constants for interacting with HARDWARE on Android O+.

Functions

Link copied to clipboard
open fun areHardwareBitmapsBlocked(): Boolean
Link copied to clipboard
open fun blockHardwareBitmaps()
Link copied to clipboard
open fun isHardwareConfigAllowed(    targetWidth: Int,     targetHeight: Int,     isHardwareConfigAllowed: Boolean,     isExifOrientationRequired: Boolean): Boolean
Link copied to clipboard
open fun unblockHardwareBitmaps()

Properties

Force the state to wait until a call to allow hardware Bitmaps to be used when they'd otherwise be eligible to work around a framework issue pre Q that can cause a native crash when allocating a hardware Bitmap in this specific circumstance.
Link copied to clipboard
val HARDWARE_BITMAPS_SUPPORTED: Boolean
Support for the hardware bitmap config was added in Android O.
Link copied to clipboard
open val instance: HardwareConfigState
Link copied to clipboard
val NO_MAX_FD_COUNT: Int
This constant will be removed in a future version without deprecation, avoid using it.