replayMaskRules method

  1. @override
Future<ReplayMaskRules?> replayMaskRules()
override

maskAllText and maskAllImages of the running session replay, null when nothing records.

Implementation

@override
Future<ReplayMaskRules?> replayMaskRules() async {
  final raw = await methodChannel.invokeMethod<Map<Object?, Object?>>(
    'replayMaskRules',
  );
  if (raw == null) return null;
  // A missing key masks: the rules must never fail open.
  return ReplayMaskRules(
    maskAllText: raw['maskAllText'] as bool? ?? true,
    maskAllImages: raw['maskAllImages'] as bool? ?? true,
    captureFrames: raw['captureFrames'] as bool? ?? false,
  );
}