-
public final class ViewCache
-
-
Field Summary
Fields Modifier and Type Field Description private final SessionReplayLoggerlogger
-
Constructor Summary
Constructors Constructor Description ViewCache(PrivacyConfig privacyConfig, SessionReplayLogger logger)
-
Method Summary
Modifier and Type Method Description final SessionReplayLoggergetLogger()final IntegergetMappedId(Object node, Function1<Integer, Unit> doOnInstanceCreated)node can be either View or Compose Layout node doOnInstanceCreated is called when new instance is created and added to cache. final UnitremoveMappedId(Integer id)final BitmapgetBitmap(Integer width, Integer height)final UnitreleaseBitmap(Bitmap bitmap)final HandlergetCopyThreadHandler()final Unitshutdown()-
-
Constructor Detail
-
ViewCache
ViewCache(PrivacyConfig privacyConfig, SessionReplayLogger logger)
-
-
Method Detail
-
getLogger
final SessionReplayLogger getLogger()
-
getMappedId
final Integer getMappedId(Object node, Function1<Integer, Unit> doOnInstanceCreated)
node can be either View or Compose Layout node doOnInstanceCreated is called when new instance is created and added to cache.
-
removeMappedId
final Unit removeMappedId(Integer id)
-
releaseBitmap
final Unit releaseBitmap(Bitmap bitmap)
-
getCopyThreadHandler
final Handler getCopyThreadHandler()
-
-
-
-