shareMood method

  1. @override
Future<void> shareMood({
  1. required int scene,
  2. String? summary,
  3. List<Uri>? imageUris,
  4. Uri? videoUri,
})
override

分享 - 说说

Implementation

@override
Future<void> shareMood({
  required int scene,
  String? summary,
  List<Uri>? imageUris,
  Uri? videoUri,
}) {
  assert(scene == TencentScene.kScene_QZone);
  assert((summary?.isNotEmpty ?? false) ||
      ((imageUris?.isNotEmpty ?? false) &&
          imageUris!.every((Uri element) => element.isScheme('file'))) ||
      (videoUri != null && videoUri.isScheme('file')));
  return methodChannel.invokeMethod<void>(
    'shareMood',
    <String, dynamic>{
      'scene': scene,
      if (summary?.isNotEmpty ?? false) 'summary': summary,
      if (imageUris?.isNotEmpty ?? false)
        'imageUris':
            imageUris!.map((Uri imageUri) => imageUri.toString()).toList(),
      if (videoUri != null) 'videoUri': videoUri.toString(),
    },
  );
}