XKitReporter class

Constructors

XKitReporter()
factory

Properties

debugFlag bool
debug 版本标记
final
hashCode int
The hash code for this object.
no setterinherited
moduleInfoCache Map<String, String>
module 信息缓存,key - moduleName, value - moduleVersion
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

beginReport({required dynamic moduleName, String? moduleVersion, required String api, String? params}) int
api 调用上报记录点
endReport({required int requestId, int code = 0, String? response, bool rightNow = false}) → void
api 调用上报包含参数以及结果
flushAll({Duration delayTime = const Duration(seconds: 5)}) → void
将缓存中所有未上报数据全部上报
init({required String? appKey, String? imVersion, String? nertcVersion}) → void
初始化 rtc 版本号,im 版本号, appKey 等数据
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register({required String moduleName, required String moduleVersion, bool report = true, bool rightNow = true}) → void
注册模块信息
reportApiCallbackEvent({required String moduleName, String? moduleVersion, required String apiCallback, String? params, String? response, required int requestId, int? costTime, int code = 0, int time = 0, bool rightNow = false}) → void
上报调用 api 后的异步回调结果
reportCallbackEvent({required String moduleName, String? moduleVersion, required String callback, int code = 0, String? response, int time = 0, bool rightNow = false}) → void
上报三方外部回调
reportInit({required String moduleName, required String moduleVersion, bool rightNow = false}) → void
上报模块初始化
reportPV({required String moduleName, String? moduleVersion, String? page, String? user, String? extra, bool rightNow = false}) → void
上报页面PV
reportUV({required String moduleName, String? moduleVersion, String? page, String? user, String? extra, bool rightNow = false}) → void
上报页面UV
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited