Package-level declarations

Types

Link copied to clipboard
class KSVGDrawableResource(drawable: KSVGDrawable) : DrawableResource<Drawable>

Glide Drawable resource wrapping a KSVGDrawable. Reports the drawable's retained memory for cache weighing and releases its pools on recycle.

Link copied to clipboard
class KSVGGlideModule : LibraryGlideModule

Glide integration entry point. Auto-registered as a LibraryGlideModule: adding the hu.oandras.ksvg:glide artifact is enough, no manual setup needed.

Link copied to clipboard

Options for the KSVG Glide integration.

Link copied to clipboard
class KSVGSvgDecoder(loggerContext: LoggerContext = AndroidLoggerContext) : ResourceDecoder<InputStream, SVG>

Decodes an SVG into its parsed SVG document form. Per-target drawables are created from the cached document by KSVGSvgDrawableTranscoder, so the requested width/height do not affect decoding and no bounds are assigned here.

Link copied to clipboard
class KSVGSvgDrawableTranscoder : ResourceTranscoder<SVG, Drawable>

Creates a fresh Drawable from a cached SVG document on every call.

Link copied to clipboard
class KSVGSvgResource(svg: SVG) : Resource<SVG>

Glide Resource wrapping a parsed SVG document.

Link copied to clipboard
class SvgDecoder(pool: BitmapPool, loggerContext: LoggerContext = AndroidLoggerContext) : ResourceDecoder<InputStream, Bitmap>

Decodes an SVG internal representation from an java.io.InputStream.