LogUploader class Core

Uploads a recorded log file to Magic Lane servers for bug reports.

LogUploader sends .gm or .mp4 recordings to Magic Lane backends and reports progress and status updates through the optional callback provided at construction.

Use this class to programmatically upload logs for diagnostics or bug reporting.

See also:

  • LogUploadListener: internal listener used to receive upload events.

Constructors

LogUploader.new({void onLogStatusChanged(GemError error, String logPath, LogUploaderState? status, int? progress)?})
Creates a LogUploader instance.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
pointerId int
The pointer ID of the native object
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel({required String logPath}) GemError
Cancels an ongoing upload for the specified log file.
dispose() → void
Disposes the native object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAutoReleaseObject(int pointerId) → void
Registers an object for auto release.
inherited
toString() String
A string representation of this object.
inherited
upload({required String logPath, required String userName, required String userMail, String details = '', List<String> externalFiles = const <String>[]}) GemError
Starts uploading a log file to the server.

Operators

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