build

open fun build(dataSource: DataSource, isFirstResource: Boolean): Transition<R>

Returns a new Transition for the given arguments. If isFromMemoryCache is true or isFirstImage is false, returns a NoTransition and otherwise returns a new ViewTransition.

Parameters

dataSource

The com.bumptech.glide.load.DataSource the resource was loaded from.

isFirstResource

True if this is the first resource to be loaded into the target.