ChatUIMediaInterceptor

public interface ChatUIMediaInterceptor

Interceptor for media resource loading in the ChatUI SDK.

Implement this interface to customize HTTP headers for Glide image requests and to intercept WebView resource loading.

Register an implementation via setChatUIMediaInterceptor.

Types

Link copied to clipboard
public interface Callback<T>
Completion callback for asynchronous interceptor operations.

Functions

Link copied to clipboard
public String onCombinePortraitLoad(String url)
Called when a combined-message portrait URL is about to be loaded.
Link copied to clipboard
public abstract void onGlidePrepareLoad(String url, Map<String, String> headers, ChatUIMediaInterceptor.Callback<Map<String, String>> callback)
Called before Glide loads an image, allowing custom HTTP headers to be injected.
Link copied to clipboard
public abstract boolean shouldInterceptRequest(WebView view, String url)
Intercepts a WebView resource request.