Interface Preprocess<T>
- Type Parameters:
T- The class representing the resource - This is the type on which the preprocessing will run (e.g.Bitmap)
public interface Preprocess<T>
Preprocess to run on a resource before uploading to Cloudinary. Pass an implementation of this interface to
PreprocessChain.addStep(Preprocess)
to run preprocessing and validation steps on a resource.-
Method Details
-
execute
Execute the given preprocess on the resource- Parameters:
context- Android contextresource- the resource as prepared by aResourceDecoder- Returns:
- A resource of type T after processing.
- Throws:
PreprocessException- if something fails during preprocess, or in case of aValidationException
-