setSubscriptionDuration method

Future<void> setSubscriptionDuration(
  1. Duration duration
)

Sets the frequency at which duration updates are sent to duration listeners.

Zero means "no callbacks". The default is zero.

Implementation

Future<void> setSubscriptionDuration(Duration duration) async {
  _logger.d('FS:---> setSubscriptionDuration ');
  await _waitOpen();
  if (!_isInited) {
    throw Exception('Recorder is not open');
  }
  await TauRecorderPlatform.instance
      .setSubscriptionDuration(this, duration: duration);
  _logger.d('FS:<--- setSubscriptionDuration ');
}