mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
35 lines
1 KiB
Java
35 lines
1 KiB
Java
package io.sentry;
|
|
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.concurrent.CopyOnWriteArrayList;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class FullyDisplayedReporter {
|
|
private static final FullyDisplayedReporter instance = new FullyDisplayedReporter();
|
|
private final List<FullyDisplayedReporterListener> listeners = new CopyOnWriteArrayList();
|
|
|
|
/* loaded from: classes3.dex */
|
|
public interface FullyDisplayedReporterListener {
|
|
void onFullyDrawn();
|
|
}
|
|
|
|
public static FullyDisplayedReporter getInstance() {
|
|
return instance;
|
|
}
|
|
|
|
private FullyDisplayedReporter() {
|
|
}
|
|
|
|
public void registerFullyDrawnListener(FullyDisplayedReporterListener fullyDisplayedReporterListener) {
|
|
this.listeners.add(fullyDisplayedReporterListener);
|
|
}
|
|
|
|
public void reportFullyDrawn() {
|
|
Iterator<FullyDisplayedReporterListener> it = this.listeners.iterator();
|
|
this.listeners.clear();
|
|
while (it.hasNext()) {
|
|
it.next().onFullyDrawn();
|
|
}
|
|
}
|
|
}
|