public interface

MediaIdExtractor

com.facebook.imagepipeline.cache.MediaIdExtractor

Class Overview

Experimental interface for a helper to extract media IDs from URLs. This can be useful in cases where manually updating all image requests may carry too much overhead initially.

Implementations must be careful not to provide identical media IDs for images which will be returned with different aspect ratios or cropping.

Summary

Public Methods
abstract String getMediaIdFrom(Uri uri)
Extracts the media ID, if possible, from the provided URI.

Public Methods

public abstract String getMediaIdFrom (Uri uri)

Extracts the media ID, if possible, from the provided URI.

Parameters
uri the image request's URI
Returns
  • the extracted ID, or null