/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.drawable.base;

/**
 * A drawable can implement this interface to be notified when it might be convenient to drop its
 * caches in order conserve memory. This is best effort and the Drawable should not depend on it
 * being called.
 */
public interface DrawableWithCaches {

  /** Informs the Drawable to drop its caches. */
  void dropCaches();
}

/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.drawable.base;

import com.facebook.infer.annotation.Nullsafe;

/**
 * A drawable can implement this interface to be notified when it might be convenient to drop its
 * caches in order conserve memory. This is best effort and the Drawable should not depend on it
 * being called.
 */
@Nullsafe(Nullsafe.Mode.STRICT)
public interface DrawableWithCaches {

  /** Informs the Drawable to drop its caches. */
  void dropCaches();
}

Make fresco/imagepipeline-base/.../drawable nullsafe