getPendingEventCount method
Get the count of pending events in the queue
Returns the number of events currently queued and waiting to be sent to the server. Useful for debugging or showing queue status to users.
Example:
final pendingCount = client.getPendingEventCount();
print('Events waiting to be sent: $pendingCount');
Implementation
int getPendingEventCount() {
try {
return _eventTracker.getPendingEventsCount();
} catch (e) {
Logger.e('🔔 Error getting pending event count: $e');
return 0;
}
}