getSdkVersion static method

Future<String?> getSdkVersion()

get the agora native sdk version

Implementation

static Future<String?> getSdkVersion() async {
  final res = await AgoraRtmPlugin.callMethodForStatic("getSdkVersion", null);
  if (res["errorCode"] != 0)
    throw AgoraRtmClientException(
        "getSdkVersion failed errorCode:${res['errorCode']}",
        res['errorCode']);
  return res["version"];
}