FlutterBugly 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

Operators

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

Static Properties

onCheckUpgrade Stream<UpgradeInfo>
no setter

Static Methods

checkUpgrade({bool isManual = true, bool isSilence = false}) Future<Null>
检查更新,返回更新策略信息
dispose() → void
getUpgradeInfo() Future<UpgradeInfo?>
获取本地更新策略,即上次未更新的策略
init({String? androidAppId, String? iOSAppId, String? channel, bool autoCheckUpgrade = true, bool autoInit = true, bool autoDownloadOnWifi = false, bool enableHotfix = false, bool enableNotification = false, bool showInterruptedStrategy = true, bool canShowApkInfo = true, int initDelay = 0, int upgradeCheckPeriod = 0, int checkUpgradeCount = 1, bool customUpgrade = true}) Future<InitResultInfo>
初始化
postCatchedException<T>(T callback(), {FlutterExceptionHandler? onException, String? filterRegExp, bool debugUpload = false}) → void
异常上报。该方法等同于 runZonedGuarded
putUserData({required String key, required String value}) Future<Null>
设置关键数据,随崩溃信息上报
setAppChannel(String channel) Future<Null>
自定义渠道标识,Android 专用
setUserId(String userId) Future<Null>
设置用户标识
setUserTag(int userTag) Future<Null>
设置标签 userTag 标签 ID,可在网站生成
uploadException({required String message, required String detail, Map? data}) Future<Null>
上报自定义异常信息,data 为文本附件 Android 错误分析 => 跟踪数据 => extraMessage.txt iOS 错误分析 => 跟踪数据 => crash_attach.log