Home
last modified time | relevance | path

Searched refs:LottieListener (Results 1 – 6 of 6) sorted by relevance

/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieTask.java39 private final Set<LottieListener<T>> successListeners = new LinkedHashSet<>(1);
40 private final Set<LottieListener<Throwable>> failureListeners = new LinkedHashSet<>(1);
78 public synchronized LottieTask<T> addListener(LottieListener<T> listener) { in addListener()
92 public synchronized LottieTask<T> removeListener(LottieListener<T> listener) { in removeListener()
102 public synchronized LottieTask<T> addFailureListener(LottieListener<Throwable> listener) { in addFailureListener()
116 public synchronized LottieTask<T> removeFailureListener(LottieListener<Throwable> listener) { in removeFailureListener()
142 List<LottieListener<T>> listenersCopy = new ArrayList<>(successListeners); in notifySuccessListeners()
143 for (LottieListener<T> l : listenersCopy) { in notifySuccessListeners()
151 List<LottieListener<Throwable>> listenersCopy = new ArrayList<>(failureListeners); in notifyFailureListeners()
157 for (LottieListener<Throwable> l : listenersCopy) { in notifyFailureListeners()
DLottieAnimationView.java67 …private static final LottieListener<Throwable> DEFAULT_FAILURE_LISTENER = new LottieListener<Throw…
78 …private final LottieListener<LottieComposition> loadedListener = new LottieListener<LottieComposit…
84 private final LottieListener<Throwable> wrappedFailureListener = new LottieListener<Throwable>() {
90LottieListener<Throwable> l = failureListener == null ? DEFAULT_FAILURE_LISTENER : failureListener;
94 @Nullable private LottieListener<Throwable> failureListener;
441 public void setFailureListener(@Nullable LottieListener<Throwable> failureListener) { in setFailureListener()
DLottieListener.java6 public interface LottieListener<T> { interface
DLottieCompositionFactory.java476 task.addListener(new LottieListener<LottieComposition>() {
482 task.addFailureListener(new LottieListener<Throwable>() {
DLottieComposition.java340 …private static final class ListenerAdapter implements LottieListener<LottieComposition>, Cancellab…
/external/lottie/lottie/src/test/java/com/airbnb/lottie/
DLottieTaskTest.java17 public LottieListener<Integer> successListener;
19 public LottieListener<Throwable> failureListener;
67 .addListener(new LottieListener<Integer>() { in testRemoveListener()