initializeSessionReplay method
Implementation
@override
Future<String?> initializeSessionReplay(
CXSessionReplayOptions options) async {
try {
final arguments = options.toMap();
final result = await methodChannel.invokeMethod<String>(
'initializeSessionReplay', arguments);
await SessionReplayMasking.initialize(
maskAllTexts: options.maskAllTexts ?? false,
textsToMask: options.textsToMask,
);
return result;
} on PlatformException catch (e) {
debugPrint('Error initializing session replay: $e');
return null;
}
}