Resource

data class Resource<ResourceT>(val status: Status, val resource: ResourceT) : GlideFlowInstant<ResourceT>

Wraps a Status and a resource loaded from the primary request, a RequestBuilder.thumbnail request, or a RequestBuilder.error request.

Status.FAILED is a perfectly valid status with this class. If the primary request fails, but at least one thumbnail succeeds, the flow will emit Resource(FAILED, resource) to indicate both that we have some value but also that the primary request has failed.

Constructors

Link copied to clipboard
fun <ResourceT> Resource(status: Status, resource: ResourceT)

Properties

Link copied to clipboard
val resource: ResourceT
Link copied to clipboard
open override val status: Status