analyzeImage method

  1. @override
Future<bool> analyzeImage(
  1. Uint8List file
)
override

Analyzes an image for sensitive content.

Returns a bool indicating whether the image is sensitive.

Implementation

@override
Future<bool> analyzeImage(Uint8List file) async {
  try {
    final dynamic isSensitive =
        await methodChannel.invokeMethod('analyzeImage', file);
    return isSensitive;
  } on PlatformException catch (e) {
    debugPrint(e.message);
    return false;
  }
}