All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bumptech.glide.MemoryCategory Maven / Gradle / Ivy

Go to download

A fast and efficient image loading library for Android focused on smooth scrolling.

There is a newer version: 5.0.0-rc01
Show newest version
package com.bumptech.glide;

/** An enum for dynamically modifying the amount of memory Glide is able to use. */
public enum MemoryCategory {
  /**
   * Tells Glide's memory cache and bitmap pool to use at most half of their initial maximum size.
   */
  LOW(0.5f),
  /** Tells Glide's memory cache and bitmap pool to use at most their initial maximum size. */
  NORMAL(1f),
  /**
   * Tells Glide's memory cache and bitmap pool to use at most one and a half times their initial
   * maximum size.
   */
  HIGH(1.5f);

  private final float multiplier;

  MemoryCategory(float multiplier) {
    this.multiplier = multiplier;
  }

  /**
   * Returns the multiplier that should be applied to the initial maximum size of Glide's memory
   * cache and bitmap pool.
   */
  public float getMultiplier() {
    return multiplier;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy