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); }
public static BackgroundBitmapCache GetInstance() { if (_instance != null) { return(_instance); } _instance = new BackgroundBitmapCache(); _instance.Init(); return(_instance); }