getLicense static method

License getLicense()

Get the license details about the application.

The license details includes the LicenseStatus, LicenseLevel, and LicenseType values for the licensed application. It also contains the expiry date of the license or whether the provided license is perpetual.

Return Value: The license details about the application.

Implementation

static License getLicense() {
  _initializeArcGISEnvironmentIfNeeded();
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ArcGISRuntimeEnvironment_getLicense(errorHandler);
  });
  return License._fromHandle(objectHandle)!;
}