com.aliyun.svideosdk.license

## Class LicenseManager

- java.lang.Object
- - com.aliyun.svideosdk.license.LicenseManager

-     public class LicenseManager
      extends java.lang.Object

  SDK License management. You can get license initialization results and info in this manager`s logs.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static interface` | `LicenseManager.Feature`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LicenseManager()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getCertExpireTime()`
    `long` | `getCertSignTime()`
    `int` | `getErrorCode()`
    `java.lang.String` | `getErrorMessage()`
    `long` | `getExpireTime()`
    `static LicenseManager` | `getInstance()`
    `java.lang.String` | `getLicenseFeatures()`
    `void` | `onError(int errorCode, java.lang.String errorMsg)` Licsne initialization failed
    `void` | `onSuccess(java.lang.String features, long certSignTime, long certExpireTime, long expireTime)`
    `void` | `removeCallback()`
    `LicenseManager` | `setCallback(ILicenseNativeInitCallback callback)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LicenseManager

          public LicenseManager()

  - ### Method Detail

    - #### getInstance

          public static LicenseManager getInstance()

    - #### onError

          public void onError(int errorCode,
                              java.lang.String errorMsg)

      Licsne initialization failed
      Parameters:
        `errorCode` - License initialization error code
        `errorMsg` - License initialization error message

    - #### onSuccess

          public void onSuccess(java.lang.String features,
                                long certSignTime,
                                long certExpireTime,
                                long expireTime)

      Parameters:
        `features` - Supported value-added services `LicenseManager.Feature`
        `certSignTime` - Certificate Issuing Time,Unix timestamp, milliseconds
        `certExpireTime` - the validity period of the certificate,Unix timestamp, milliseconds
        `expireTime` - Validity of short video sdk business,Unix timestamp, milliseconds

    - #### getErrorCode

          public int getErrorCode()

      Returns:
        License initialization error code

    - #### getErrorMessage

          public java.lang.String getErrorMessage()

      Returns:
        License initialization error message

    - #### getLicenseFeatures

          public java.lang.String getLicenseFeatures()

      Returns:
        Supported value-added services `LicenseManager.Feature`

    - #### getCertSignTime

          public long getCertSignTime()

      Returns:
        Certificate Issuing Time,Unix timestamp, milliseconds

    - #### getCertExpireTime

          public long getCertExpireTime()

      Returns:
        the validity period of the certificate,Unix timestamp, milliseconds

    - #### getExpireTime

          public long getExpireTime()

      Returns:
        Validity of business,Unix timestamp, milliseconds

    - #### setCallback

          public LicenseManager setCallback(ILicenseNativeInitCallback callback)

    - #### removeCallback

          public void removeCallback()