shareWebAndImgData function

Future<void> shareWebAndImgData({
  1. String title = '',
  2. String desc = '',
  3. required String wepageUrl,
  4. required Uint8List imageData,
})

分享网页,并附带一张图片的二进制数据作为缩略图。

Implementation

Future<void> shareWebAndImgData({
  String title = '',
  String desc = '',
  required String wepageUrl,
  required Uint8List imageData,
}) async {
  await _channel.invokeMethod("shareWebData", {
    "title": title,
    "desc": desc,
    "wepageUrl": wepageUrl,
    "imageData": imageData,
  });
}