public final class SAConfigOptions
extends java.lang.Object
implements java.lang.Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
boolean |
mDisableDebugAssistant
禁用辅助工具
|
boolean |
mDisableRandomTimeRequestRemoteConfig
禁用随机时间请求远程配置
|
boolean |
mEnableTrackPush
是否开启推送点击采集
|
int |
mMaxRequestInterval
远程配置请求最大间隔时长,单位:小时,默认 48
|
int |
mMinRequestInterval
远程配置请求最小间隔时长,单位:小时,默认 24
|
java.lang.String |
mRemoteConfigUrl
请求配置地址,默认从 ServerUrl 解析
|
javax.net.ssl.SSLSocketFactory |
mSSLSocketFactory
设置 SSLSocketFactory
|
| 构造器和说明 |
|---|
SAConfigOptions(java.lang.String serverUrl)
获取 SAOptionsConfig 实例
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected SAConfigOptions |
clone() |
SAConfigOptions |
disableDataCollect()
禁用数据采集
|
SAConfigOptions |
disableDebugAssistant()
禁用辅助工具
|
SAConfigOptions |
disableRandomTimeRequestRemoteConfig()
禁用分散请求远程配置
|
SAConfigOptions |
enableAutoAddChannelCallbackEvent(boolean isAutoAddChannelCallbackEvent)
是否在手动埋点事件中自动添加渠道匹配信息
|
SAConfigOptions |
enableEncrypt(boolean enableEncrypt)
是否开启加密
|
SAConfigOptions |
enableHeatMap(boolean enableHeatMap)
设置点击图是否可用
|
SAConfigOptions |
enableHeatMapConfirmDialog(boolean enableDialog)
设置点击图提示对话框是否可用
|
SAConfigOptions |
enableJavaScriptBridge(boolean isSupportJellyBean)
开启自动打通所有的 WebView H5 功能。
|
SAConfigOptions |
enableLog(boolean enableLog)
是否打印日志
|
SAConfigOptions |
enableMultipleChannelMatch(boolean enableMultipleChannelMatch)
是否开启多渠道匹配,开启后 trackInstallation 中由 profile_set_once 操作改为 profile_set 。
|
SAConfigOptions |
enableReactNativeAutoTrack(boolean enableRN)
是否开启 RN 数据采集
|
SAConfigOptions |
enableReferrerTitle(boolean enable)
是否开启前向标题采集.
|
SAConfigOptions |
enableSaveDeepLinkInfo(boolean enableSave)
设置是否保存 utm 属性
|
SAConfigOptions |
enableSubProcessFlushData()
是否多进程上报数据
|
SAConfigOptions |
enableTrackAppCrash()
设置是否开启 AppCrash 采集,默认是关闭的
|
SAConfigOptions |
enableTrackPush(boolean enableTrackPush)
是否开启 push 点击的采集
|
SAConfigOptions |
enableTrackScreenOrientation(boolean enableScreenOrientation)
是否开启屏幕方向采集
|
SAConfigOptions |
enableVisualizedAutoTrack(boolean enableVisualizedAutoTrack)
设置可视化全埋点是否可用
|
SAConfigOptions |
enableVisualizedAutoTrackConfirmDialog(boolean enableDialog)
设置可视化全埋点提示对话框是否可用
|
SAConfigOptions |
persistentSecretKey(IPersistentSecretKey persistentSecretKey)
密钥回调监听
|
SAConfigOptions |
setAnonymousId(java.lang.String anonymousId)
设置匿名 ID
|
SAConfigOptions |
setAutoTrackEventType(int autoTrackEventType)
设置 AutoTrackEvent 的类型,可通过 '|' 进行连接
|
SAConfigOptions |
setFlushBulkSize(int flushBulkSize)
设置本地缓存日志的最大条目数
|
SAConfigOptions |
setFlushInterval(int flushInterval)
设置两次数据发送的最小时间间隔,最小值 5 秒
|
SAConfigOptions |
setMaxCacheSize(long maxCacheSize)
设置本地缓存上限值,单位 byte,默认为 32MB:32 * 1024 * 1024,最小 16MB:16 * 1024 * 1024,若小于 16MB,则按 16MB 处理。
|
SAConfigOptions |
setMaxRequestInterval(int maxRequestInterval)
设置远程配置请求最大间隔时长
|
SAConfigOptions |
setMinRequestInterval(int minRequestInterval)
设置远程配置请求最小间隔时长
|
SAConfigOptions |
setNetworkTypePolicy(int networkTypePolicy)
设置数据的网络上传策略
|
SAConfigOptions |
setRemoteConfigUrl(java.lang.String remoteConfigUrl)
设置远程配置请求地址
|
SAConfigOptions |
setServerUrl(java.lang.String serverUrl)
设置数据上报地址
|
SAConfigOptions |
setSourceChannels(java.lang.String... channels)
用户需采集渠道信息自定义属性 key 值,可传多个。
|
SAConfigOptions |
setSSLSocketFactory(javax.net.ssl.SSLSocketFactory SSLSocketFactory)
设置 SSLSocketFactory,HTTPS 请求连接时需要使用
|
public java.lang.String mRemoteConfigUrl
public int mMinRequestInterval
public int mMaxRequestInterval
public boolean mDisableRandomTimeRequestRemoteConfig
public javax.net.ssl.SSLSocketFactory mSSLSocketFactory
public boolean mDisableDebugAssistant
public boolean mEnableTrackPush
public SAConfigOptions(java.lang.String serverUrl)
serverUrl,数据上报服务器地址 - public SAConfigOptions setRemoteConfigUrl(java.lang.String remoteConfigUrl)
remoteConfigUrl,远程配置请求地址 - public SAConfigOptions setServerUrl(java.lang.String serverUrl)
serverUrl,数据上报地址 - public SAConfigOptions setAutoTrackEventType(int autoTrackEventType)
autoTrackEventType - 开启的 AutoTrack 类型public SAConfigOptions enableTrackAppCrash()
public SAConfigOptions setFlushInterval(int flushInterval)
flushInterval - 时间间隔,单位毫秒public SAConfigOptions setFlushBulkSize(int flushBulkSize)
flushBulkSize - 缓存数目public SAConfigOptions setMaxCacheSize(long maxCacheSize)
maxCacheSize - 单位 bytepublic SAConfigOptions setMinRequestInterval(int minRequestInterval)
minRequestInterval - 最小时长间隔,单位:小时,默认 24,合法区间在(0, 7*24] 之间public SAConfigOptions setMaxRequestInterval(int maxRequestInterval)
maxRequestInterval - 最大时长间隔,单位:小时,默认 48,合法区间在(0, 7*24] 之间public SAConfigOptions disableRandomTimeRequestRemoteConfig()
public SAConfigOptions disableDebugAssistant()
public SAConfigOptions enableHeatMap(boolean enableHeatMap)
enableHeatMap - 点击图是否可用public SAConfigOptions enableHeatMapConfirmDialog(boolean enableDialog)
enableDialog - 对话框状态是否可用public SAConfigOptions enableVisualizedAutoTrack(boolean enableVisualizedAutoTrack)
enableVisualizedAutoTrack - 可视化全埋点是否可用public SAConfigOptions enableVisualizedAutoTrackConfirmDialog(boolean enableDialog)
enableDialog - 对话框状态是否可用public SAConfigOptions enableLog(boolean enableLog)
enableLog - 是否开启打印日志public SAConfigOptions enableReactNativeAutoTrack(boolean enableRN)
enableRN - 是否开启 RN 采集public SAConfigOptions enableTrackScreenOrientation(boolean enableScreenOrientation)
enableScreenOrientation - 是否开启屏幕方向采集public SAConfigOptions setNetworkTypePolicy(int networkTypePolicy)
networkTypePolicy - 数据的网络上传策略public SAConfigOptions setAnonymousId(java.lang.String anonymousId)
anonymousId - 匿名 IDpublic SAConfigOptions enableSaveDeepLinkInfo(boolean enableSave)
enableSave - boolean 默认 false 不保存public SAConfigOptions setSourceChannels(java.lang.String... channels)
channels - 渠道信息自定义属性 key 值public SAConfigOptions enableJavaScriptBridge(boolean isSupportJellyBean)
isSupportJellyBean - 是否支持 API level 16 及以下的版本。因为 API level 16 及以下的版本,addJavascriptInterface 有安全漏洞,请谨慎使用。public SAConfigOptions enableAutoAddChannelCallbackEvent(boolean isAutoAddChannelCallbackEvent)
isAutoAddChannelCallbackEvent - true: 开启,false: 不开启,默认是 falsepublic SAConfigOptions enableMultipleChannelMatch(boolean enableMultipleChannelMatch)
enableMultipleChannelMatch - true 开启 false 关闭public SAConfigOptions enableEncrypt(boolean enableEncrypt)
enableEncrypt - 是否开启加密public SAConfigOptions persistentSecretKey(IPersistentSecretKey persistentSecretKey)
persistentSecretKey - 密钥回调监听public SAConfigOptions enableSubProcessFlushData()
public SAConfigOptions disableDataCollect()
public SAConfigOptions setSSLSocketFactory(javax.net.ssl.SSLSocketFactory SSLSocketFactory)
SSLSocketFactory - 证书public SAConfigOptions enableReferrerTitle(boolean enable)
enable - 是否开启前向标题采集public SAConfigOptions enableTrackPush(boolean enableTrackPush)
enableTrackPush - 是否开启 push 点击的采集protected SAConfigOptions clone()
clone 在类中 java.lang.Object