コード例 #1
0
 public DecodeBitmapTask(Resources resources, [DrawableRes] int bitmapResId,
                         int reqWidth, int reqHeight,
                         [NonNull] IListener listener)
 {
     _cache       = BackgroundBitmapCache.GetInstance();
     _resources   = resources;
     _bitmapResId = bitmapResId;
     _reqWidth    = reqWidth;
     _reqHeight   = reqHeight;
     _refListener = new WeakReference <IListener>(listener);
 }
コード例 #2
0
        public static BackgroundBitmapCache GetInstance()
        {
            if (_instance != null)
            {
                return(_instance);
            }

            _instance = new BackgroundBitmapCache();
            _instance.Init();
            return(_instance);
        }