-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,io.sentry.IConnectionStatusProvider.IConnectionStatusObserver,io.sentry.Integration,io.sentry.ReplayController,io.sentry.android.replay.ScreenshotRecorderCallback,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, ComponentCallbacks, IConnectionStatusProvider.IConnectionStatusObserver, RateLimiter.IRateLimitObserver
-
-
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<Boolean, ScreenshotRecorderConfig> recorderConfigProvider, 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()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()UnitonConfigurationChanged(Configuration newConfig)UnitonConnectionStatusChanged(IConnectionStatusProvider.ConnectionStatus status)UnitonRateLimitChanged(RateLimiter rateLimiter)UnitonLowMemory()UnitonTouchEvent(MotionEvent event)-
-
Constructor Detail
-
ReplayIntegration
ReplayIntegration(Context context, ICurrentDateProvider dateProvider)
-
ReplayIntegration
ReplayIntegration(Context context, ICurrentDateProvider dateProvider, Function0<Recorder> recorderProvider, Function1<Boolean, ScreenshotRecorderConfig> recorderConfigProvider, 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()
-
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
-
onConfigurationChanged
Unit onConfigurationChanged(Configuration newConfig)
-
onConnectionStatusChanged
Unit onConnectionStatusChanged(IConnectionStatusProvider.ConnectionStatus status)
-
onRateLimitChanged
Unit onRateLimitChanged(RateLimiter rateLimiter)
-
onLowMemory
Unit onLowMemory()
-
onTouchEvent
Unit onTouchEvent(MotionEvent event)
-
-
-
-