Package com.cheetahdigital.uikit.helper
Class GlideHelper
- java.lang.Object
-
- com.cheetahdigital.uikit.helper.GlideHelper
-
public class GlideHelper extends java.lang.ObjectHelper class for displaying Bitmaps using Glide.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGlideHelper.GlideListenerstatic classGlideHelper.GlideManagerstatic classGlideHelper.GlideSimpleTargetstatic classGlideHelper.ImageType
-
Constructor Summary
Constructors Constructor Description GlideHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static android.graphics.BitmapgetBitmap(android.content.Context context, android.net.Uri uri)Get Bitmap from Uristatic android.graphics.BitmapgetBitmap(android.content.Context context, java.lang.String url)Get Bitmap from urlstatic com.bumptech.glide.load.engine.bitmap_recycle.BitmapPoolgetBitmapPool(android.content.Context context)Get Bitmap Poolstatic GlideHelper.GlideManagerwith(android.content.Context context)Load an instance ofGlideHelper.GlideManagerstatic GlideHelper.GlideManagerwith(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:
Bitmaploaded 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:
Bitmapgenerated 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:
BitmapPoolinstance
-
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.ImageTypecategory 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
-
-