feat(android): Implement sharing internal files and text

This commit is contained in:
2023-09-18 17:58:16 +02:00
parent f971a0e078
commit 44187675c7
14 changed files with 891 additions and 633 deletions

View File

@@ -10,6 +10,13 @@ import 'package:pigeon/pigeon.dart';
),
),
)
class ShareItem {
const ShareItem(this.path, this.mime, this.text);
final String? path;
final String mime;
final String? text;
}
@HostApi()
abstract class MoxxyPlatformApi {
String getPersistentDataPath();
@@ -19,4 +26,6 @@ abstract class MoxxyPlatformApi {
void openBatteryOptimisationSettings();
bool isIgnoringBatteryOptimizations();
void shareItems(List<ShareItem> items, String genericMimeType);
}