shareWebpage method

  1. @override
Future<void> shareWebpage({
  1. required int scene,
  2. required String title,
  3. String? summary,
  4. Uri? imageUri,
  5. required String targetUrl,
  6. String? appName,
  7. int extInt = TencentQZoneFlag.DEFAULT,
})
override

分享 - 网页

Implementation

@override
Future<void> shareWebpage({
  required int scene,
  required String title,
  String? summary,
  Uri? imageUri,
  required String targetUrl,
  String? appName,
  int extInt = TencentQZoneFlag.DEFAULT,
}) {
  return methodChannel.invokeMethod<void>(
    'shareWebpage',
    <String, dynamic>{
      'scene': scene,
      'title': title,
      if (summary?.isNotEmpty ?? false) 'summary': summary,
      if (imageUri != null) 'imageUri': imageUri.toString(),
      'targetUrl': targetUrl,
      if (appName?.isNotEmpty ?? false) 'appName': appName,
      'extInt': extInt,
    },
  );
}