LogDrop class

Main entry point for interacting with the LogDrop Flutter SDK. Provides logging, crash tracking

Constructors

LogDrop()
Returns the singleton instance of LogDrop.
factory

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

crashTracker → LogDropCrashTracker
Crash tracker instance for monitoring and reporting app crashes.
final
networkLogger → LogDropNetworkLogger
Network Logger instance for monitoring and http logs.
final

Static Methods

flushOtlpTracing({Duration timeout = const Duration(seconds: 2)}) → Future<bool>
Best-effort delivery of queued HTTP CLIENT spans from the native encrypted queue.
isLogDropPush(Map<String, String> data) → Future<bool>
Checks if the notification payload is from LogDrop.
logDebug({required String tag, required String message, LogFlow? logFlow}) → dynamic
Logs a debug message with optional flow tracking.
logError({required String tag, required String message, LogFlow? logFlow}) → dynamic
Logs an error message with optional flow tracking.
logInfo({required String tag, required String message, LogFlow? logFlow}) → dynamic
Logs an informational message with optional flow tracking.
logWarning({required String tag, required String message, LogFlow? logFlow}) → dynamic
Logs a warning message with optional flow tracking.
onNewFcmPushToken(String token) → Future<void>
Sends a new Firebase Cloud Messaging (FCM) push token to LogDrop.
onNewHmsPushToken(String token) → Future<void>
Sends a new Huawei Mobile Services (HMS) push token to LogDrop.
onRemoteMessageReceived(Map<String, String> data) → dynamic
Handles a remote push message received by the application.
removeCustomAttribute(String key) → Future<void>
Removes a custom user attribute used for push segmentation.
saveCrashReport(String threadName, String stackTrace, String crashType) → Future<void>
Saves a crash report to the native platform for later transmission.
sendLogs() → dynamic
Sends all collected logs to the LogDrop backend.
setAppId(String appId) → dynamic
Updates the current app ID after SDK initialization.
setCustomAttributes(Map<String, String> attributes) → Future<void>
Adds or updates custom user attributes used for push segmentation.
showPendingPushPopup() → Future<LogDropPopupShowResult>
Presents any pending rich-push popup or internal browser action, if one is queued.
trackCustomEvent(String eventName, [Map<String, Object?> properties = const {}]) → Future<void>
Tracks a customer-defined event with JSON-compatible properties.
Tracks a deep link or universal link with a single cross-platform API.
userUpdate(String userId) → dynamic
Updates the current user identifier for session tracking.

Constants

maxOtlpFlushTimeout → const Duration
Upper bound for flushOtlpTracing; the native exporters never hold a caller longer.