ContentDownloadHandlerFactory Interface
Use this interface to provide a class factory that Salesforce can call to create instances of your custom ContentDownloadHandler.
ContentDownloadHandler getContentDownloadHandler(List<ID> ids, ContentDownloadContext context);
The following are methods for ContentDownloadHandlerFactory.
-
getContentDownloadHandler(var1, var2)
Returns a ContentDownloadHandler for a given list of content IDs and a download context.
Returns a ContentDownloadHandler for a given list of content IDs and a download context.
public Sfc.ContentDownloadHandler getContentDownloadHandler(List<Id> var1, Sfc.ContentDownloadContext var2)
-
var1:
Type: List<Id>
-
var2:
Type: Sfc.ContentDownloadHandler
This example creates a class that implements the Sfc.ContentDownloadHandlerFactory interface and returns a download handler that blocks downloading content to mobile devices.