GlideUtil

class GlideUtil

Functions

Link copied to clipboard
Throws an java.lang.IllegalArgumentException if called on the main thread.
Link copied to clipboard
open fun assertMainThread()
Throws an java.lang.IllegalArgumentException if called on a thread other than the main thread.
Link copied to clipboard
open fun getBitmapByteSize(@NonNull bitmap: Bitmap): Int
Returns the in memory size of the given Bitmap in bytes.
open fun getBitmapByteSize(width: Int, height: Int, @Nullable config: Bitmap.Config): Int
Returns the in memory size of android.graphics.Bitmap with the given width, height, and android.graphics.Bitmap.Config.
Link copied to clipboard
open fun getSize(@NonNull bitmap: Bitmap): Int
Returns the allocated byte size of the given bitmap.
Link copied to clipboard
Returns true if called on a background thread, false otherwise.
Link copied to clipboard
Returns true if called on the main thread, false otherwise.
Link copied to clipboard
open fun isValidDimensions(width: Int, height: Int): Boolean
Returns true if width and height are both >0 and/or equal to SIZE_ORIGINAL.
Link copied to clipboard
Returns the hex string of the given byte array representing a SHA256 hash.