setEnabledAttachmentTypes static method

Future<void> setEnabledAttachmentTypes(
  1. bool screenshot,
  2. bool extraScreenshot,
  3. bool galleryImage,
  4. bool screenRecording,
)

Sets whether attachments in bug reporting and in-app messaging are enabled or not. screenshot A boolean to enable or disable screenshot attachments. extraScreenshot A boolean to enable or disable extra screenshot attachments. galleryImage A boolean to enable or disable gallery image attachments. In iOS 10+,NSPhotoLibraryUsageDescription should be set in info.plist to enable gallery image attachments. screenRecording A boolean to enable or disable screen recording attachments.

Implementation

static Future<void> setEnabledAttachmentTypes(bool screenshot,
    bool extraScreenshot, bool galleryImage, bool screenRecording) async {
  final List<dynamic> params = <dynamic>[
    screenshot,
    extraScreenshot,
    galleryImage,
    screenRecording
  ];
  await _channel.invokeMethod<Object>(
      'setEnabledAttachmentTypes:extraScreenShot:galleryImage:screenRecording:',
      params);
}