Files
featherVoice/TencentCloudHuiyanSDKFace_framework/Libs/YTCommonLiveness.framework/Headers/yt_auth.h

80 lines
2.6 KiB
C
Raw Normal View History

2025-08-08 10:49:36 +08:00
/**
* @file yt_auth.h
* @author tencent
* @brief
* @version 2.0
* @date 2020-09-10
*
* @copyright Copyright (c) 2020
*
*/
#ifndef _YT_AUTH_H_
#define _YT_AUTH_H_
#include "yt_defines.h"
// license文件申请https://docs.qq.com/doc/DZERXWmNYeVNyWlF0
/**
* @brief 使license文件初始化授权
* @param `platform_context` Android平台输入JNIEnv*NULL
* @param `license_path` Android平台将license文件打包到assets中
* @param `secret_key` license对应的secret_key
* @return 0[](#errorcode)
*/
YT_PUBLIC int ytliveness_auth_init_by_path(void* platform_context, const char* license_path, const char* secret_key);
/**
* @brief 使license字符串初始化鉴权license文件做base64即可
* @param `platform_context` Android平台输入JNIEnv*NULL
* @param `license_string` license字符串
* @param `secret_key` license对应的secret_key
* @return 0[](#errorcode)
*/
YT_PUBLIC int ytliveness_auth_init_by_string(void* platform_context, const char* license_string, const char* secret_key);
/**
* @brief
* @param `platform_context` Android平台输入JNIEnv*NULL
* @return 0[](#errorcode)
*/
YT_PUBLIC int ytliveness_auth_init_for_qq(void* platform_context);
/**
* @brief
* @return
*/
YT_PUBLIC long long ytliveness_auth_get_endtime();
/**
* @brief
* @return
*/
YT_PUBLIC const char* ytliveness_auth_get_version();
/**
* @brief SDK列表
* @param sdklist_buf sdklistint[]SDKlist
* @param max_count sdklist_buf的最大index
* @return sdklist数量
* @note sdklist_buf传NULLSDK列表的总数
*/
YT_PUBLIC int ytliveness_auth_get_sdklist_ids(int* sdklist_buf, int max_count);
/**
* @brief sdk_id代表的SDK名称
* @param sdk_id
* @return id代表的SDK名称
*/
YT_PUBLIC const char* ytliveness_auth_get_sdkname(int sdk_id);
/**
* @brief log
* @param enable1- 0-
* @return
*/
YT_PUBLIC void ytliveness_auth_enable_log(int enable);
#endif