getVersion static method

Future<String> getVersion()

Gets the SDK's version number.

When the SDK is running, the developer finds that it does not match the expected situation and submits the problem and related logs to the ZEGO technical staff for locating. The ZEGO technical staff may need the information of the engine version to assist in locating the problem. Developers can also collect this information as the version information of the engine used by the app, so that the SDK corresponding to each version of the app on the line.

Available since: 2.1.5.

Description: Get the SDK version.

Use cases:

  1. When the SDK is running, the developer finds that it does not match the expected situation and submits the problem and related logs to the ZEGO technical staff for locating. The ZEGO technical staff may need the information of the engine version to assist in locating the problem.
  2. Developers can also collect this information as the version information of the engine used by the app, so that the SDK corresponding to each version of the app on the line.

When to call : It can be called at any time.

@return SDK version.

Implementation

static Future<String> getVersion() async {
  return await ZIMManager.getVersion();
}