FTMobileFlutter class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
bindRUMUserData(String userId, {String? userName, String? userEmail, Map<String, String>? ext})
→ Future<void>
-
绑定用户
-
flushSyncData()
→ Future<void>
-
立即同步数据
-
registerInnerLogHandler(void handler(String level, String tag, String message))
→ Future<void>
-
设置内部日志接管对象
handler
回调对象
-
sdkConfig({String? serverUrl, String? datakitUrl, String? datawayUrl, String? cliToken, bool? debug, String? serviceName, EnvType? envType, String? env, bool? enableAccessAndroidID, int? dataSyncRetryCount, bool? autoSync, SyncPageSize? syncPageSize, int? customSyncPageSize, int? syncSleepTime, Map<String, String>? globalContext, List<String>? iOSGroupIdentifiers})
→ Future<void>
-
配置
serverUrl
datakit 访问 URL 地址,例子:http://10.0.0.1:9529,端口默认 9529。deprecated
datakitUrl
datakit 访问 URL 地址,例子:http://10.0.0.1:9529,端口默认 9529。 datakit 与 dataway 配置二选一
datawayUrl
dataway 访问 URL 地址,例子:http://10.0.0.1:9528,端口默认 9528,注意:安装 SDK 设备需能访问这地址.注意:datakit 和 dataway 配置两者二选一
cliToken
dataway 认证 token,需要与 dataw
同时配置
debug
默认为 false,开启后方可打印 SDK 运行日志
serviceName
应用服务名
envType
默认为 EnvType.PROD,envType 与 env 二选一
env
默认为 prod, envType 与 env 二选一
enableAccessAndroidID
开启获取 Android ID,默认,为 true,设置为 false,则 device_uuid 字段数据将不进行采集,市场隐私审核相关查看这里
globalContext
SDK 全局属性
-
setEnableAccessAndroidID(bool enableAccessAndroidID)
→ Future<void>
-
是否开启使用 accessAndroidID,仅支持 Android
enableAccessAndroidID
true 开启,false 不开启
-
trackEventFromExtension(String groupIdentifier)
→ Future<Map<String, dynamic>>
-
同步 ios extension 中的事件,仅支持 iOS
groupIdentifier
app groupId
-
unbindRUMUserData()
→ Future<void>
-
解绑用户