ComposingSceneTransitionFactory

In package com.nhaarman.acorn.android.transition

class com.nhaarman.acorn.android.transition.ComposingSceneTransitionFactory

A SceneTransitionFactory implementation that can delegate to other implementations.

Methods

fun supports(previousScene: Scene, newScene: Scene, data: TransitionData?): Boolean

Returns true when this SceneTransitionFactory can create a SceneTransition when transitionFor is called. If this method returns false for a specific combination of its parameters, no calls to transitionFor with that combination must be made.

Parameters:
fun transitionFor(previousScene: Scene, newScene: Scene, data: TransitionData?): SceneTransition

Creates a new SceneTransition for given Scenes.

Parameters:
  • previousScene: Scene

    The Scene to start the animation from.

  • newScene: Scene

    The Scene to animate to.

  • data: TransitionData?

    Optional data for the transition.