MethodChannelFlutterScreenguard class
An implementation of FlutterScreenguardPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterScreenguardPlatform
- MethodChannelFlutterScreenguard
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
{required Color color, Duration? timeAfterResume}) → Future< void> -
activate a screenshot blocking with a color effect view (iOS 13+, Android 8+)
colorcolor of the backgroundoverride -
registerScreenRecordingEventListener(
) → Future< void> -
iOSactivate a screenshot blocking with a color effect view (iOS 13+, Android 8+)colorcolor of the backgroundinherited -
registerScreenshotEventListener(
{bool? getScreenShotPath = false}) → Future< void> -
iOS 12+, Android 8+activate a screenshot listenerinherited -
registerWithBlurView(
{required num radius, String? localImagePath, Duration? timeAfterResume = const Duration(milliseconds: 1000)}) → Future< void> -
iOS, Androidactivate a screenshot blocking with a blurred effect view (iOS 13+, Android 8+)radiusradiusoverride -
registerWithImage(
{required String uri, required double width, required double height, Color? color = Colors.black, Duration? timeAfterResume = const Duration(milliseconds: 1000), Alignment? alignment, double? top, double? left, double? bottom, double? right}) → Future< void> -
iOS 13+, Android 8+activate a screenshot blocking with an image effect viewcolorcolor of the backgroundoverride -
registerWithoutEffect(
) → Future< void> -
Android 5+activate a screenshot blocking without any effect (blur, image, color)inherited -
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
) → Future< void> -
unregister and deactivate all screenguard and listener
Throws a PlatformException if there were technical problems on native side
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
alignments
→ const List<
Alignment>