KSVGSvgResource

class KSVGSvgResource(svg: SVG) : Resource<SVG>

Glide Resource wrapping a parsed SVG document.

The document is immutable after parsing and safe to share: per-target drawables are created from it by KSVGSvgDrawableTranscoder, so this is what lives in Glide's caches — never a drawable instance.

Constructors

Link copied to clipboard
constructor(svg: SVG)

Properties

Link copied to clipboard
open override val resourceClass: Class<SVG>
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open override fun get(): SVG
Link copied to clipboard
open override fun getResourceClass(): Class<SVG>
Link copied to clipboard
open override fun getSize(): Int
Link copied to clipboard
open override fun recycle()