AGCCrash class
External API class of the Crash service in AppGallery Connect
Constructors
- AGCCrash()
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
-
enableCrashCollection(
bool enable) → Future< void> - Enable crash collection by
-
log(
{LogLevel level = LogLevel.info, required String message}) → Future< void> - You can record custom logs, which will be reported together with the crash data. You can check a crash report with custom log information in AppGallery Connect
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onFlutterError(
FlutterErrorDetails details) → Future< void> - Call the onFlutterError and recordError methods in the main function to automatically record all exceptions that occur in your app.
-
recordError(
dynamic exception, StackTrace stack, {bool fatal = false}) → Future< void> - Call the onFlutterError and recordError methods in the main function to automatically record all exceptions that occur in your app.
-
setCustomKey(
String key, dynamic value) → Future< void> - To obtain the app status in which a crash occurs, you can add a custom key-value pair to record the status. The recorded status will be reported together with the crash data.
-
setUserId(
String userId) → Future< void> - You can allocate a custom user ID to a user to uniquely identify the user. These user IDs will help you learn about the users who have specific crashes.
-
testIt(
) → Future< void> - a Fatal Crash to test your app by
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited