getBlackList static method

Future<void> getBlackList(
  1. dynamic finished(
    1. List? userIdList,
    2. int? code
    )?
)

查询已经设置的黑名单列表

finished 回调结果,code 为 0 代表操作成功,其他值代表失败

userIdList 黑名单用户 id 列表

Implementation

static Future<void> getBlackList(Function(List? /*<String>*/ userIdList, int? code)? finished) async {
  Map result = await _channel.invokeMethod(RCMethodKey.GetBlackList);
  List? userIdList = result["userIdList"];
  int? code = result["code"];
  if (finished != null) {
    finished(userIdList, code);
  }
}