declineApplication method
拒绝加群申请
Implementation
void declineApplication({
final String userName,
final String groupId,
final String reason,
onSuccess(),
onError(int errorCode, String desc)}){
Future<Map<String, dynamic>> result = _emGroupManagerChannel
.invokeMethod(EMSDKMethod.declineApplication, {"userName" : userName, "groupId" : groupId, "reason" : reason});
result.then((response){
if (response['success']) {
if (onSuccess != null) {
onSuccess();
}
} else {
if (onError != null) onError(response['code'], response['desc']);
}
});
}