shareMusic method
分享 - 音乐
Implementation
@override
Future<void> shareMusic({
required int scene,
required String title,
String? summary,
Uri? imageUri,
required String musicUrl,
required String targetUrl,
String? appName,
int extInt = TencentQZoneFlag.DEFAULT,
}) {
assert(scene == TencentScene.SCENE_QQ);
return methodChannel.invokeMethod<void>(
'shareMusic',
<String, dynamic>{
'scene': scene,
'title': title,
if (summary?.isNotEmpty ?? false) 'summary': summary,
if (imageUri != null) 'imageUri': imageUri.toString(),
'musicUrl': musicUrl,
'targetUrl': targetUrl,
if (appName?.isNotEmpty ?? false) 'appName': appName,
'extInt': extInt,
},
);
}