-
public interface SessionReplayInternalCallbackDefines points of change for clients to override existing functionality with platform specific code.
-
-
Method Summary
Modifier and Type Method Description abstract ActivitygetCurrentActivity()Retrieves the current activity, allowing clients to pass it when needed. abstract UnitaddResourceItem(String identifier, ByteArray resourceData, String mimeType)Adds a resource item to the current resource queue. abstract UnitsetResourceQueue(SessionReplayInternalResourceQueue resourceQueue)Sets the resource queue used by this callback. -
-
Method Detail
-
getCurrentActivity
abstract Activity getCurrentActivity()
Retrieves the current activity, allowing clients to pass it when needed. This is used by SessionReplayRecorder to register fragment lifecycle callbacks that were missed because the client was initialized after the
Application.onCreatephase.
-
addResourceItem
abstract Unit addResourceItem(String identifier, ByteArray resourceData, String mimeType)
Adds a resource item to the current resource queue.
- Parameters:
identifier- A unique identifier for the resource.resourceData- The raw content of the resource.mimeType- Optional MIME type describing the resource data (e.g.
-
setResourceQueue
abstract Unit setResourceQueue(SessionReplayInternalResourceQueue resourceQueue)
Sets the resource queue used by this callback. This allows resource management to also be handled on a platform-specific level.
- Parameters:
resourceQueue- The SessionReplayInternalResourceQueue instance that will collect and manage resource items submitted through addResourceItem.
-
-
-
-