shareWebpage method
分享 - 网页
Implementation
@override
Future<void> shareWebpage({
required int scene,
String? title,
String? description,
Uint8List? thumbData,
required String webpageUrl,
}) {
assert(title == null || title.length <= 512);
assert(description == null || description.length <= 1024);
assert(thumbData == null || thumbData.lengthInBytes <= 32 * 1024);
assert(webpageUrl.length <= 10 * 1024);
return methodChannel.invokeMethod<void>(
'shareWebpage',
<String, dynamic>{
'scene': scene, // Scene
if (title != null) 'title': title,
if (description != null) 'description': description,
if (thumbData != null) 'thumbData': thumbData,
'webpageUrl': webpageUrl,
},
);
}