package com.airbnb.lottie;

import android.graphics.Bitmap;

/**
 * Delegate to handle the loading of bitmaps that are not packaged in the assets of your app.
 *
 * @see LottieDrawable#setImageAssetDelegate(ImageAssetDelegate)
 */
public interface ImageAssetDelegate {
  Bitmap fetchBitmap(LottieImageAsset asset);
}

package com.airbnb.lottie;

import android.graphics.Bitmap;
import androidx.annotation.Nullable;

/**
 * Delegate to handle the loading of bitmaps that are not packaged in the assets of your app.
 *
 * @see LottieDrawable#setImageAssetDelegate(ImageAssetDelegate)
 */
public interface ImageAssetDelegate {
  @Nullable Bitmap fetchBitmap(LottieImageAsset asset);
}

Annotate fetchBitmap as @Nullable (#1037)