fl_umeng library Null safety
Functions
-
initWithUM(
{required String androidAppKey, required String iosAppKey, String channel = ''}) → Future< bool?> - 初始化
-
onEventWithUM(
String event, Map< String, dynamic> properties) → Future<bool?> - 发送自定义事件(目前属性值支持字符、整数、浮点、长整数,暂不支持NULL、布尔、MAP、数组)
-
onPageEndWithUM(
String pageName) → Future< bool?> - 离开页面统计
-
onPageStartWithUM(
String pageName) → Future< bool?> - 进入页面统计
-
reportErrorWithUM(
Map< String, String> error) → Future<bool?> - 错误上报 仅支持android
-
setPageCollectionModeAutoWithUM(
) → Future< bool?> - 如果不需要上述页面统计,在完成后可关闭该设置;如果没有用该功能可忽略;
-
setPageCollectionModeManualWithUM(
) → Future< bool?> - 如果需要使用页面统计,则先打开该设置
-
setUMLogEnabled(
bool logEnabled) → Future< bool?> - 是否开启日志 仅支持android
-
signInWithUM(
String userID, {String? provider}) → Future< bool?> - 设置用户账号 provider 账号来源。不能以下划线"_"开头,使用大写字母和数字标识,长度小于32 字节
-
signOffWithUM(
) → Future< bool?> - 取消用户账号