Searched refs:LottieListener (Results 1 – 6 of 6) sorted by relevance
39 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()
67 …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>() {90 …LottieListener<Throwable> l = failureListener == null ? DEFAULT_FAILURE_LISTENER : failureListener;94 @Nullable private LottieListener<Throwable> failureListener;441 public void setFailureListener(@Nullable LottieListener<Throwable> failureListener) { in setFailureListener()
6 public interface LottieListener<T> { interface
476 task.addListener(new LottieListener<LottieComposition>() {482 task.addFailureListener(new LottieListener<Throwable>() {
340 …private static final class ListenerAdapter implements LottieListener<LottieComposition>, Cancellab…
17 public LottieListener<Integer> successListener;19 public LottieListener<Throwable> failureListener;67 .addListener(new LottieListener<Integer>() { in testRemoveListener()