FlUMeng class

Constructors

FlUMeng()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isInit bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDeviceInfo() Future<UMengDeviceInfo?>
getTestDeviceInfo() Future<String?>
获取集成测试信息的接口 android "$deviceId" ios "$deviceId"
getUMId() Future<UMengID?>
获取zid 和 umid
init({required String androidAppKey, required String iosAppKey, String channel = ''}) Future<bool>
初始化 preInit 是否预加载 仅支持android
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEvent(String event, Map<String, dynamic> properties) Future<bool>
发送自定义事件(目前属性值支持字符、整数、浮点、长整数,暂不支持NULL、布尔、MAP、数组)
onKillProcess(String key, String type) Future<bool>
android 退出app 时 保存统计数据
onPageEnd(String pageName) Future<bool>
离开页面统计
onPageStart(String pageName) Future<bool>
进入页面统计
reportError(String error) Future<bool>
错误上报 仅支持android
setEncryptEnabled(bool enabled) Future<bool>
设置是否对日志信息进行加密, 默认NO
setLogEnabled(bool enabled) Future<bool>
是否开启日志
setPageCollectionModeAuto() Future<bool>
如果不需要上述页面统计,在完成后可关闭该设置;如果没有用该功能可忽略;
setPageCollectionModeManual() Future<bool>
如果需要使用页面统计,则先打开该设置
signIn(String userID, {String? provider}) Future<bool>
设置用户账号 provider 账号来源。不能以下划线"_"开头,使用大写字母和数字标识,长度小于32 字节
signOff() Future<bool>
取消用户账号
toString() String
A string representation of this object.
inherited

Operators

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