public class AlivcSdkCore
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AlivcSdkCore.AlivcDebugLoggerLevel
SDK 日志上报等级
|
static class |
AlivcSdkCore.AlivcLogLevel
SDK 日志等级,默认为AlivcLogWarn
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APP_PRIVATE_DIR |
static java.lang.String |
APP_PUBLIC_DIR |
protected static long |
mNativeHandle |
Constructor and Description |
---|
AlivcSdkCore() |
Modifier and Type | Method and Description |
---|---|
static AlivcSdkCore.AlivcDebugLoggerLevel |
getDebugLoggerLevel()
Deprecated.
|
static AlivcSdkCore.AlivcLogLevel |
getLogLevel()
获取当前日志等级
|
static boolean |
register(Context context)
Init sdk
|
static boolean |
register(Context context,
AlivcSdkConfig alivcSdkConfig)
Init sdk
|
static void |
registerAsync(Context context,
AlivcSdkConfig alivcSdkConfig,
ILicenseNativeInitCallback callback)
Init sdk async for No built-in authorization certificate, please wait for callback
|
static void |
setDebugLoggerLevel(AlivcSdkCore.AlivcDebugLoggerLevel level)
Deprecated.
|
static void |
setLogLevel(AlivcSdkCore.AlivcLogLevel level)
设置SDK 日志等级,默认为
AlivcSdkCore.AlivcLogLevel.AlivcLogWarn |
static void |
setLogPath(java.lang.String path)
设置日志保存路径
v3.31.0 会保存在默认路径/file/Log/ShortVideo文件夹中,增加14天自动删除
v3.31.0 以下版本必须设置日志保存,否则不落地,需业务方自行删除
|
static void |
unregister()
反注册SDK
|
protected static long mNativeHandle
public static java.lang.String APP_PRIVATE_DIR
public static java.lang.String APP_PUBLIC_DIR
public static boolean register(Context context)
context
- context,public static boolean register(Context context, AlivcSdkConfig alivcSdkConfig)
context
- context,alivcSdkConfig
- the sdk optional config AlivcSdkConfig
public static void registerAsync(Context context, AlivcSdkConfig alivcSdkConfig, ILicenseNativeInitCallback callback)
context
- context,alivcSdkConfig
- the sdk optional config AlivcSdkConfig
callback
- license init callback.(main thread)public static void unregister()
public static void setLogLevel(AlivcSdkCore.AlivcLogLevel level)
AlivcSdkCore.AlivcLogLevel.AlivcLogWarn
public static AlivcSdkCore.AlivcLogLevel getLogLevel()
@Deprecated public static void setDebugLoggerLevel(AlivcSdkCore.AlivcDebugLoggerLevel level)
AlivcDebugLoggerLevel.AlivcDLNormal
v3.31.0 已失效,无需设置。见com.aliyun.svideosdk.AlivcSdkCore#setLogLevel(com.aliyun.svideosdk.AlivcSdkCore.AlivcLogLevel)即可@Deprecated public static AlivcSdkCore.AlivcDebugLoggerLevel getDebugLoggerLevel()
public static void setLogPath(java.lang.String path)
path
-