Class GlideHelper


  • public class GlideHelper
    extends java.lang.Object
    Helper class for displaying Bitmaps using Glide.
    • Constructor Detail

      • GlideHelper

        public GlideHelper()
    • 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 resources
        uri - 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 resources
        url - 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