Package 

Interface AsyncImageHeadersProvider


  • @Deprecated(message = Use CDN instead. Configure via ChatClient.Builder.cdn().) 
    public interface AsyncImageHeadersProvider
    
                        

    Provides HTTP headers for image loading requests in a suspending, thread-safe manner.

    Unlike ImageHeadersProvider, this interface is designed for async operations such as reading an auth token from encrypted storage or fetching one from a remote endpoint. Implementations are always invoked on kotlinx.coroutines.Dispatchers.IO, so blocking calls are safe.

    • Method Summary

      Modifier and Type Method Description
      abstract Map<String, String> getImageRequestHeaders(String url) Returns a map of headers to be used for the image loading request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getImageRequestHeaders

         abstract Map<String, String> getImageRequestHeaders(String url)

        Returns a map of headers to be used for the image loading request.

        Always called on kotlinx.coroutines.Dispatchers.IO, so blocking operations are safe.

        Parameters:
        url - The URL of the image to load.