Package com.cheetahdigital.uikit.helper
Class GlideHelper
- java.lang.Object
-
- com.cheetahdigital.uikit.helper.GlideHelper
-
public class GlideHelper extends java.lang.Object
Helper class for displaying Bitmaps using Glide.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GlideHelper.GlideListener
static class
GlideHelper.GlideManager
static class
GlideHelper.GlideSimpleTarget
static class
GlideHelper.ImageType
-
Constructor Summary
Constructors Constructor Description GlideHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static android.graphics.Bitmap
getBitmap(android.content.Context context, android.net.Uri uri)
Get Bitmap from Uristatic android.graphics.Bitmap
getBitmap(android.content.Context context, java.lang.String url)
Get Bitmap from urlstatic com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool
getBitmapPool(android.content.Context context)
Get Bitmap Poolstatic GlideHelper.GlideManager
with(android.content.Context context)
Load an instance ofGlideHelper.GlideManager
static GlideHelper.GlideManager
with(android.content.Context context, GlideHelper.ImageType type)
Load an instance ofGlideHelper.GlideManager
-
-
-
Method Detail
-
getBitmap
public static android.graphics.Bitmap getBitmap(android.content.Context context, android.net.Uri uri)
Get Bitmap from Uri- Parameters:
context
- used for getting resourcesuri
- Uri of the file to be loaded- Returns:
Bitmap
loaded from the uri
-
getBitmap
public static android.graphics.Bitmap getBitmap(android.content.Context context, java.lang.String url)
Get Bitmap from url- Parameters:
context
- used for getting resourcesurl
- url of the bitmap to convert- Returns:
Bitmap
generated from the url
-
getBitmapPool
public static com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool getBitmapPool(android.content.Context context)
Get Bitmap Pool- Parameters:
context
- used for getting resources- Returns:
BitmapPool
instance
-
with
public static GlideHelper.GlideManager with(android.content.Context context, GlideHelper.ImageType type)
Load an instance ofGlideHelper.GlideManager
- Parameters:
context
- used for getting resourcestype
-GlideHelper.ImageType
category to load- Returns:
- instance of
GlideHelper.GlideManager
-
with
public static GlideHelper.GlideManager with(android.content.Context context)
Load an instance ofGlideHelper.GlideManager
- Parameters:
context
- used for getting resources- Returns:
- instance of
GlideHelper.GlideManager
-
-