downloadGroupSharedFile method
下载群里的某个共享文件
Implementation
void downloadGroupSharedFile({
final String groupId,
final String fileId,
final String savePath,
onSuccess(),
onError(int errorCode, String desc)}){
Future<Map<String, dynamic>> result = _emGroupManagerChannel
.invokeMethod(EMSDKMethod.downloadGroupSharedFile, {"groupId" : groupId, "fileId" : fileId, "savePath" : savePath});
result.then((response) {
if (response['success']) {
if (onSuccess != null) {
onSuccess();
}
} else {
if (onError != null) onError(response['code'], response['desc']);
}
});
}