startMonitor method

  1. @override
  2. @Deprecated('Use AtClient.notificationService')
Future<void> startMonitor(
  1. String privateKey,
  2. Function? notificationCallback, {
  3. String? regex,
})
override

Implementation

@override

///[Deprecated] Use [AtClient.notificationService]
@Deprecated('Use AtClient.notificationService')
Future<void> startMonitor(String privateKey, Function? notificationCallback,
    {String? regex}) async {
  var monitorVerbBuilder = MonitorVerbBuilder();
  if (regex != null) {
    monitorVerbBuilder.regex = regex;
  }
  await _remoteSecondary!.monitor(
      monitorVerbBuilder.buildCommand(), notificationCallback, privateKey);
}