Package openfoodfacts. github. scrachx. openfood. images
Types
Link copied to clipboard
Link copied to clipboard
data class ImageTransformation( val rotationInDegree: Int = 0, val cropRectangle: Rect? = null, var imageUrl: String? = null, var imageId: String? = null)
Content copied to clipboard
Link copied to clipboard
data class ProductImage( val barcode: Barcode, val field: ProductImageField, val language: String?, val bytes: ByteArray, val filePath: String? = null)
Content copied to clipboard
Functions
Link copied to clipboard
fun createImageBundle( imageType: ProductImageField?, product: Product?, language: String?, imageUrl: String): Bundle
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getImageStringKey(field: ProductImageField, language: String): String
Content copied to clipboard
Link copied to clipboard
fun getImageUrl( barcode: Barcode, imageName: String, size: String): String
Content copied to clipboard
Link copied to clipboard
fun getInitialServerTransformation( product: Product, productImageField: ProductImageField, language: String): ImageTransformation
Content copied to clipboard
Link copied to clipboard
fun getLanguageCodeFromUrl(field: ProductImageField?, url: String?): String?
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Contract(pure = true )
Content copied to clipboard
Link copied to clipboard
fun getScreenTransformation( product: Product, productImageField: ProductImageField, language: String): ImageTransformation
Content copied to clipboard
Link copied to clipboard
fun toServerTransformation( screenTransformation: ImageTransformation, product: Product, productImageField: ProductImageField, language: String): ImageTransformation
Content copied to clipboard