initializeSessionReplay method

  1. @override
Future<String?> initializeSessionReplay(
  1. CXSessionReplayOptions options
)
override

Implementation

@override
Future<String?> initializeSessionReplay(CXSessionReplayOptions options) async {
  try {
    final arguments = options.toMap();
    final result = await methodChannel.invokeMethod<String>('initializeSessionReplay', arguments);

    SessionReplayMasking.initialize();

    return result;
  } on PlatformException catch (e) {
    debugPrint('Error initializing session replay: $e');
    return null;
  }
}