/** * Sets a transcoder to transcode the decoded and transformed {@link Bitmap} into another resource type. * * @param transcoder The transoder to use. * @param transcodeClass The {@link Class} of the resource the {@link Bitmap} will be transcoded to. * @param <R> The type of the resource the {@link Bitmap} will be transcoded to. * @return This request builder. */ public <R> BitmapRequestBuilder<ModelType, R> transcode(ResourceTranscoder<Bitmap, R> transcoder, Class<R> transcodeClass) { return optionsApplier.apply(new BitmapRequestBuilder<ModelType, R>( buildProvider(glide, streamModelLoader, fileDescriptorModelLoader, transcodeClass, transcoder), transcodeClass, this)); }