shareImage method

  1. @override
Future<void> shareImage({
  1. required int scene,
  2. required Uri imageUri,
  3. String? appName,
  4. int extInt = TencentQZoneFlag.kDefault,
})
override

分享 - 图片

Implementation

@override
Future<void> shareImage({
  required int scene,
  required Uri imageUri,
  String? appName,
  int extInt = TencentQZoneFlag.kDefault,
}) {
  assert(scene == TencentScene.kScene_QQ);
  assert(imageUri.isScheme('file'));
  return methodChannel.invokeMethod<void>(
    'shareImage',
    <String, dynamic>{
      'scene': scene,
      'imageUri': imageUri.toString(),
      if (appName?.isNotEmpty ?? false) 'appName': appName,
      'extInt': extInt,
    },
  );
}