-
- All Implemented Interfaces:
-
io.sentry.IConnectionStatusProvider.IConnectionStatusObserver,io.sentry.IReplayApi,io.sentry.Integration,io.sentry.ReplayController,io.sentry.android.replay.ScreenshotRecorderCallback,io.sentry.android.replay.WindowCallback,io.sentry.android.replay.gestures.TouchRecorderCallback,io.sentry.transport.RateLimiter.IRateLimitObserver,java.io.Closeable,java.lang.AutoCloseable
public final class ReplayIntegration implements Integration, Closeable, ScreenshotRecorderCallback, TouchRecorderCallback, ReplayController, IConnectionStatusProvider.IConnectionStatusObserver, RateLimiter.IRateLimitObserver, WindowCallback
-
-
Field Summary
Fields Modifier and Type Field Description private final FilereplayCacheDir
-
Constructor Summary
Constructors Constructor Description ReplayIntegration(Context context, ICurrentDateProvider dateProvider)ReplayIntegration(Context context, ICurrentDateProvider dateProvider, Function0<Recorder> recorderProvider, Function1<SentryId, ReplayCache> replayCacheProvider)
-
Method Summary
Modifier and Type Method Description final FilegetReplayCacheDir()Unitregister(IScopes scopes, SentryOptions options)BooleanisRecording()Unitstart()Unitresume()UnitcaptureReplay(Boolean isTerminating)SentryIdgetReplayId()UnitsetBreadcrumbConverter(ReplayBreadcrumbConverter converter)ReplayBreadcrumbConvertergetBreadcrumbConverter()Unitpause()UnitenableDebugMaskingOverlay()UnitdisableDebugMaskingOverlay()BooleanisDebugMaskingOverlayEnabled()Unitstop()UnitonScreenshotRecorded(Bitmap bitmap)Called whenever a new frame screenshot is available. UnitonScreenshotRecorded(File screenshot, Long frameTimestamp)Called whenever a new frame screenshot is available. Unitclose()UnitonConnectionStatusChanged(IConnectionStatusProvider.ConnectionStatus status)UnitonRateLimitChanged(RateLimiter rateLimiter)UnitonTouchEvent(MotionEvent event)UnitonWindowSizeChanged(Integer width, Integer height)final UnitonConfigurationChanged(ScreenshotRecorderConfig config)-
-
Constructor Detail
-
ReplayIntegration
ReplayIntegration(Context context, ICurrentDateProvider dateProvider)
-
ReplayIntegration
ReplayIntegration(Context context, ICurrentDateProvider dateProvider, Function0<Recorder> recorderProvider, Function1<SentryId, ReplayCache> replayCacheProvider)
-
-
Method Detail
-
getReplayCacheDir
final File getReplayCacheDir()
-
isRecording
Boolean isRecording()
-
captureReplay
Unit captureReplay(Boolean isTerminating)
-
getReplayId
SentryId getReplayId()
-
setBreadcrumbConverter
Unit setBreadcrumbConverter(ReplayBreadcrumbConverter converter)
-
getBreadcrumbConverter
ReplayBreadcrumbConverter getBreadcrumbConverter()
-
enableDebugMaskingOverlay
Unit enableDebugMaskingOverlay()
-
disableDebugMaskingOverlay
Unit disableDebugMaskingOverlay()
-
isDebugMaskingOverlayEnabled
Boolean isDebugMaskingOverlayEnabled()
-
onScreenshotRecorded
Unit onScreenshotRecorded(Bitmap bitmap)
Called whenever a new frame screenshot is available.
- Parameters:
bitmap- a screenshot taken in the form of android.graphics.Bitmap
-
onScreenshotRecorded
Unit onScreenshotRecorded(File screenshot, Long frameTimestamp)
Called whenever a new frame screenshot is available.
- Parameters:
screenshot- file containing the frame screenshotframeTimestamp- the timestamp when the frame screenshot was taken
-
onConnectionStatusChanged
Unit onConnectionStatusChanged(IConnectionStatusProvider.ConnectionStatus status)
-
onRateLimitChanged
Unit onRateLimitChanged(RateLimiter rateLimiter)
-
onTouchEvent
Unit onTouchEvent(MotionEvent event)
-
onWindowSizeChanged
Unit onWindowSizeChanged(Integer width, Integer height)
-
onConfigurationChanged
final Unit onConfigurationChanged(ScreenshotRecorderConfig config)
-
-
-
-