Interface FileSource.ResourceTransformCallback

Enclosing class:
FileSource

public static interface FileSource.ResourceTransformCallback
This callback allows implementors to transform URLs before they are requested from the internet. This can be used add or remove custom parameters, or reroute certain requests to other servers or endpoints.
  • Method Summary

    Modifier and Type
    Method
    Description
    onURL(int kind, String url)
    Called whenever a URL needs to be transformed.
  • Method Details

    • onURL

      String onURL(int kind, String url)
      Called whenever a URL needs to be transformed.
      Parameters:
      kind - the kind of URL to be transformed.
      url - the URL to be transformed
      Returns:
      a URL that will now be downloaded.