public class LicenseManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
LicenseManager.Feature
Supported value-added services
|
Constructor and Description |
---|
LicenseManager() |
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)
license 初始化失败
|
void |
onSuccess(java.lang.String features,
long certSignTime,
long certExpireTime,
long expireTime)
license 初始化成功
|
void |
removeCallback() |
LicenseManager |
setCallback(ILicenseNativeInitCallback callback) |
public static LicenseManager getInstance()
public void onError(int errorCode, java.lang.String errorMsg)
errorCode
- license 初始化错误码errorMsg
- license 初始化错误信息public void onSuccess(java.lang.String features, long certSignTime, long certExpireTime, long expireTime)
features
- license 支持的增持服务 LicenseManager.Feature
certSignTime
- 证书签发时间,Unix时间戳,毫秒certExpireTime
- 证书有效期 Unix时间戳,毫秒expireTime
- 短视频sdk对应的业务有效期 ,Unix时间戳,毫秒public int getErrorCode()
public java.lang.String getErrorMessage()
public java.lang.String getLicenseFeatures()
LicenseManager.Feature
public long getCertSignTime()
public long getCertExpireTime()
public long getExpireTime()
public LicenseManager setCallback(ILicenseNativeInitCallback callback)
public void removeCallback()