/** Stops all transitions */ @Override public void stopTransition() { if (!mAdapterState.isTransiting()) { return; } notifyStopTransition(); mTransitionManager.stopTransition(); mAdapterState.setTransiting(false); }
@Override public boolean startTransition(float progress) { if (mAdapterState.isTransiting()) { return false; } // call listeners so they can perform their actions first, like modifying this adapter's // transitions notifyStartTransition(); mTransitionManager.startTransition(progress); mAdapterState.setTransiting(true); return true; }
@Override public List<ITransition> getTransitions() { return mTransitionManager.getTransitions(); }
@Override public void removeAllTransitions() { stopTransition(); mTransitionManager.removeAllTransitions(); }
@Override public boolean removeTransition(@NonNull ITransition transition) { return mTransitionManager.removeTransition(transition); }
@Override public void addAllTransitions(@NonNull List<ITransition> transitionsList) { mTransitionManager.addAllTransitions(transitionsList); }
@Override public void addTransition(@NonNull ITransition transition) { mTransitionManager.addTransition(transition); }
@Override public void addTransition(@NonNull BaseTransitionBuilder transitionBuilder) { mTransitionManager.addTransition(transitionBuilder); }
/** * Updates the transition progress * * @param value */ public void updateProgress(float value) { mTransitionManager.updateProgress(value); }