eventSendThreshold static method
- @Deprecated('This functions is deprecated, please use "setEventQueueSizeToSend" of CountlyConfig instead')
- int limit
Events get grouped together and are sent either every minute or after the unsent event count reaches a threshold. By default it is 10 Should be call before Countly init returns the error or success message
Implementation
@Deprecated('This functions is deprecated, please use "setEventQueueSizeToSend" of CountlyConfig instead')
static Future<String?> eventSendThreshold(int limit) async {
log('Calling "eventSendThreshold":[$limit]');
log('eventSendThreshold is deprecated, use setEventQueueSizeToSend of CountlyConfig instead', logLevel: LogLevel.WARNING);
List<String> args = [];
args.add(limit.toString());
final String? result = await _channel.invokeMethod('eventSendThreshold', <String, dynamic>{'data': json.encode(args)});
return result;
}