Interface TransitionFactory<R>

Type Parameters:
R - The type of resource that needs to be animated into the target.
All Known Implementing Classes:
BitmapContainerTransitionFactory, BitmapTransitionFactory, DrawableCrossFadeFactory, NoTransition.NoAnimationFactory, ViewAnimationFactory, ViewPropertyAnimationFactory

public interface TransitionFactory<R>
A factory class that can produce different Transitions based on the state of the request.
  • Method Summary

    Modifier and Type
    Method
    Description
    build(DataSource dataSource, boolean isFirstResource)
    Returns a new Transition.
  • Method Details

    • build

      Transition<R> build(DataSource dataSource, boolean isFirstResource)
      Returns a new Transition.
      Parameters:
      dataSource - The DataSource the resource was loaded from.
      isFirstResource - True if this is the first resource to be loaded into the target.