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

com.bumptech.glide.load.model.LazyHeaderFactory 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.load.model;

import android.support.annotation.Nullable;

/**
 * An interface for lazily creating headers that allows expensive to calculate headers (oauth for
 * example) to be generated in the background during the first fetch.
 *
 * 

Implementations should implement equals() and hashcode()

. */ public interface LazyHeaderFactory { /** * Returns an http header, or {@code null} if no header could be built. * *

Returning {@code null} or an empty String from this method will result in this particular * key/value being excluded from the headers provided in the request. If there are multiple * factories or values for a particular key, any non-null values will still be included for that * key. */ @Nullable String buildHeader(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy