-
-
Notifications
You must be signed in to change notification settings - Fork 468
Expand file tree
/
Copy pathNoOpReplayController.java
More file actions
60 lines (43 loc) · 1.22 KB
/
NoOpReplayController.java
File metadata and controls
60 lines (43 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package io.sentry;
import io.sentry.protocol.SentryId;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public final class NoOpReplayController implements ReplayController {
private static final NoOpReplayController instance = new NoOpReplayController();
public static NoOpReplayController getInstance() {
return instance;
}
private NoOpReplayController() {}
@Override
public void start() {}
@Override
public void stop() {}
@Override
public void pause() {}
@Override
public void resume() {}
@Override
public boolean isRecording() {
return false;
}
@Override
public void captureReplay(@Nullable Boolean isTerminating) {}
@Override
public @NotNull SentryId getReplayId() {
return SentryId.EMPTY_ID;
}
@Override
public void setBreadcrumbConverter(@NotNull ReplayBreadcrumbConverter converter) {}
@Override
public @NotNull ReplayBreadcrumbConverter getBreadcrumbConverter() {
return NoOpReplayBreadcrumbConverter.getInstance();
}
@Override
public boolean isDebugMaskingOverlayEnabled() {
return false;
}
@Override
public void enableDebugMaskingOverlay() {}
@Override
public void disableDebugMaskingOverlay() {}
}