FileResource

open class FileResource : SimpleResource<T>

A simple com.bumptech.glide.load.engine.Resource that wraps a File.

Constructors

Link copied to clipboard
open fun FileResource(file: File)

Functions

Link copied to clipboard
abstract fun get(): Z
fun get(): T
Returns an instance of the wrapped resource.
Link copied to clipboard
abstract fun getResourceClass(): Class<Z>
open fun getResourceClass(): Class<T>
Returns the Class of the wrapped resource.
Link copied to clipboard
fun getSize(): Int
Returns the size in bytes of the wrapped resource to use to determine how much of the memory cache this resource uses.
Link copied to clipboard
open fun recycle()
Cleans up and recycles internal resources.