shareFile method

  1. @override
Future<void> shareFile({
  1. String? uri,
  2. String? path,
  3. required String mimeType,
})

Shares a recording via Android's native chooser. Pass uri (a content:// URI, from a MediaStore/Downloads recording) if you have one; otherwise pass path (a plain file — the legacy fallback or a developer's own chosen directory), which gets resolved to a shareable URI via a bundled FileProvider first. Exactly one of uri/path must be given.

Implementation

@override
Future<void> shareFile({
  String? uri,
  String? path,
  required String mimeType,
}) async {
  shareCalls.add((uri: uri, path: path, mimeType: mimeType));
}