wx_human_seg 3.0.0
Static Public Member Functions | List of all members
wonxai::WXSDKLicense Class Reference

#include <wx_human_matting.h>

Static Public Member Functions

static void setLicense (const std::string &licensePath)
 通过文件的方式,为SDK设置license, More...
 
static void setLicense (uint8_t *buffer, size_t size)
 通过内存的方式,为SDK设置license, More...
 
static void setLicense (const char *licensePath, const char *appKey)
 通过文件的方式,为SDK设置license, More...
 
static void setLicense (uint8_t *buffer, size_t size, const char *appKey)
 通过内存的方式,为SDK设置license, More...
 
static uint64_t validFrom ()
 获取当前license文件的有效期起始时间戳 More...
 
static uint64_t expiredAt ()
 获取当前license文件的有效期过期时间戳 More...
 
static const char * licenseId ()
 获取当前license文件的licenseId More...
 

Detailed Description

WXSDKLicense

class WXSDKLicense

Member Function Documentation

◆ expiredAt()

static uint64_t wonxai::WXSDKLicense::expiredAt ( )
static

获取当前license文件的有效期过期时间戳

单位为秒

Note
本函数必须在调用WXSDKInitWithLicense 或者setLicense函数后才能调用, 否则会抛出异常。
Returns
有效期起始时间戳
Exceptions
WXException

◆ licenseId()

static const char * wonxai::WXSDKLicense::licenseId ( )
static

获取当前license文件的licenseId

Note
本函数必须在调用WXSDKInitWithLicense 或者setLicense函数后才能调用, 否则会抛出异常。
Returns
license id
Exceptions
WXException

◆ setLicense() [1/4]

static void wonxai::WXSDKLicense::setLicense ( const char *  licensePath,
const char *  appKey 
)
static

通过文件的方式,为SDK设置license,

license文件可以使用auth_tools下载或者通过商务索要

Note
调用其他api前,必须先调用setLicense函数设置license,
一个进程只需要调用一次,不需要反复调用
如果是Android系统,只能调用WXSDKInitWithLicense 函数,不能调用此函数。
Deprecated:
: 本函数不再推荐使用,请换成WXSDKInitWithLicense 函数
Parameters
[in]licensePathlicense文件路径,
[in]appKeyappKey,必须与license匹配
Exceptions
WXException

◆ setLicense() [2/4]

static void wonxai::WXSDKLicense::setLicense ( const std::string &  licensePath)
static

通过文件的方式,为SDK设置license,

license文件可以使用auth_tools下载或者通过商务索要

Note
调用其他api前,必须先调用setLicense函数设置license,
一个进程只需要调用一次,不需要反复调用
如果是Android系统,只能调用WXSDKInitWithLicense 函数,不能调用此函数。
Deprecated:
: 本函数不再推荐使用,请换成WXSDKInitWithLicense 函数
Parameters
[in]licensePathlicense文件路径,
Exceptions
WXException

◆ setLicense() [3/4]

static void wonxai::WXSDKLicense::setLicense ( uint8_t *  buffer,
size_t  size 
)
static

通过内存的方式,为SDK设置license,

license文件可以使用auth_tools下载或者通过商务索要

Note
调用其他api前,必须先调用setLicense函数设置license,
一个进程只需要调用一次,不需要反复调用
如果是Android系统,只能调用WXSDKInitWithLicense 函数,不能调用此函数。
Deprecated:
: 本函数不再推荐使用,请换成WXSDKInitWithLicense 函数
Parameters
[in]bufferlicense数据,
[in]sizelicense数据长度,
Exceptions
WXException

◆ setLicense() [4/4]

static void wonxai::WXSDKLicense::setLicense ( uint8_t *  buffer,
size_t  size,
const char *  appKey 
)
static

通过内存的方式,为SDK设置license,

license文件可以使用auth_tools下载或者通过商务索要

Note
调用其他api前,必须先调用setLicense函数设置license,
一个进程只需要调用一次,不需要反复调用
如果是Android系统,只能调用WXSDKInitWithLicense 函数,不能调用此函数。
Deprecated:
: 本函数不再推荐使用,请换成WXSDKInitWithLicense 函数
Parameters
[in]bufferlicense数据
[in]sizelicense数据长度
[in]appKeyappKey,必须与license匹配
Exceptions
WXException

◆ validFrom()

static uint64_t wonxai::WXSDKLicense::validFrom ( )
static

获取当前license文件的有效期起始时间戳

单位为秒

Note
本函数必须在调用WXSDKInitWithLicense 或者setLicense函数后才能调用, 否则会抛出异常。
Returns
有效期起始时间戳
Exceptions
WXException

The documentation for this class was generated from the following file: