Aegis class
flutter-tam Android/iOS/Flutter-Web 可用的上报(aegis)类
对外接口参考Operator
Properties
- bean → Bean
-
no setterinherited
- config ↔ Config
-
上报配置
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isWhiteList ↔ bool
-
是否在白名单
getter/setter pairinherited
- lifeCycle ↔ EventEmitter
-
生命周期,目前只有onConfigChange事件和destroy事件
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → void -
inherited
-
error(
dynamic msg, {String? ext1, String? ext2, String? ext3}) → void -
错误日志上报,
msg
支持所有primitive type, 支持map,支持list, 但是不支持用户自定义的object,如传入自定义object,必须在class内提供对应的toJson方法 error('error msg'); error('error1', 'error2'
); error({'key':'value'});inherited -
info(
dynamic msg, {String? ext1, String? ext2, String? ext3}) → void -
白名单日志上报,
msg
支持所有primitive type, 支持map,支持list, 但是不支持用户自定义的object,如传入自定义object,必须在class内提供对应的toJson方法 info('info msg'); info('info1', 'info2'
); info({'key':'value'});inherited -
infoAll(
dynamic msg, {String? ext1, String? ext2, String? ext3}) → void -
全量日志上报,
msg
支持所有primitive type, 支持map,支持list, 但是不支持用户自定义的object,如传入自定义object,必须在class内提供对应的toJson方法 infoAll('infoAll msg'); infoAll('infoAll1', 'infoAll2'
); infoAll({'key':'value'});inherited -
init(
Config config) → void -
初始化
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
report(
dynamic msg, {String? ext1, String? ext2, String? ext3}) → void -
自定义错误日志上报,
msg
支持所有primitive type, 支持map,支持list, 但是不支持用户自定义的object,如传入自定义object,必须在class内提供对应的toJson方法 report('report msg'); report('report1', 'report2'
); report({'key':'value'});inherited -
reportEvent(
String eventName, {String? ext1, String? ext2, String? ext3}) → void -
event日志上报,仅支持string类型上报
event('event name');
inherited
-
reportTime(
String name, int duration, {String? ext1, String? ext2, String? ext3, String? from}) → void -
自定义测速日志上报,
duration
单位为milliseconds,(不允许上报超过60000ms的日志) reportTime('customDuration',1000);inherited -
send(
{required Options options, dynamic successCallback(Response rsp)?, Function? failCallback}) → Future< void> -
发送日志
inherited
-
setAid(
) → void -
inherited
-
setConfig(
{String? id, String? uin, String? version, String? aid, int? networkTypeNum, String? ext1, String? ext2, String? ext3}) → void -
设置aegis上报配置,可以延后调用
常见使用场景:初始化aegis时无法获取用户uin,等待获取用户uin后,对aegis配置进行修改
setConfig(uin:'user_uin', ext1:'extra message');
inherited
-
time(
String key) → void -
自定义测速打点上报,需要和timeEnd配合使用
time('customTime');
inherited
-
timeEnd(
String key) → void -
自定义测速打点上报,需要和time配合使用
timeEnd('customTime');
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited