registerWithBlurView method

Future<void> registerWithBlurView({
  1. required num radius,
  2. String? localImagePath,
  3. Duration? timeAfterResume = const Duration(milliseconds: 1000),
})

iOS, Android activate a screenshot blocking with a blurred effect view (iOS 13+, Android 8+) radius blur radius value number in between 15, 50, throws warning if smaller than 15 or bigger than 50,

timeAfterResume (Android only) Time delayed for the view to stop displaying when going back to the application (in milliseconds). Default = 1000ms

localImagePath Path to local image which is generated by Flutter, function will throw warning when timeAfterResume bigger than 3000ms, users have to wait for the application to turn off the filter before going back to the main view, which is a very bad user experiences.

Throws a PlatformException if there were technical problems on native side (e.g. lack of relevant hardware).

Implementation

Future<void> registerWithBlurView({
  required num radius,
  String? localImagePath,
  Duration? timeAfterResume = const Duration(milliseconds: 1000),
}) {
  throw UnimplementedError(
      'registerWithBlurView() has not been implemented.');
}